diff --git a/src/unix/PidFile.hxx b/src/unix/PidFile.hxx index 46b6fbb54..cbb681554 100644 --- a/src/unix/PidFile.hxx +++ b/src/unix/PidFile.hxx @@ -25,6 +25,7 @@ #include "Log.hxx" #include +#include #include #include #include @@ -72,6 +73,8 @@ public: char buffer[64]; sprintf(buffer, "%lu\n", (unsigned long)pid); + + write(fd, buffer, strlen(buffer)); close(fd); }