MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / CreatePidFile

Function CreatePidFile

src/commons/util/util.cpp:703–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702#ifndef WIN32
703void CreatePidFile(const fs::path& path, pid_t pid) {
704 FILE* file = fopen(path.string().c_str(), "w");
705 if (file) {
706 fprintf(file, "%d\n", pid);
707 fclose(file);
708 }
709}
710#endif
711
712bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) {

Callers 1

AppInitFunction · 0.85

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected