| 701 | |
| 702 | #ifndef WIN32 |
| 703 | void 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 | |
| 712 | bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) { |