| 980 | } |
| 981 | |
| 982 | void CreatePidFile(const fs::path &path, pid_t pid) |
| 983 | { |
| 984 | FILE* file = fsbridge::fopen(path, "w"); |
| 985 | if (file) |
| 986 | { |
| 987 | fprintf(file, "%d\n", pid); |
| 988 | fclose(file); |
| 989 | } |
| 990 | } |
| 991 | #endif |
| 992 | |
| 993 | bool RenameOver(fs::path src, fs::path dest) |