aboutsummaryrefslogtreecommitdiffstats
path: root/src/unix/PidFile.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unix/PidFile.hxx3
1 files changed, 3 insertions, 0 deletions
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 <assert.h>
+#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
@@ -72,6 +73,8 @@ public:
char buffer[64];
sprintf(buffer, "%lu\n", (unsigned long)pid);
+
+ write(fd, buffer, strlen(buffer));
close(fd);
}