From 84ab3ee3af9612249a2aa97c955ce19a14074d4a Mon Sep 17 00:00:00 2001 From: Anthony DeRossi Date: Tue, 29 Sep 2015 10:39:05 -0700 Subject: [PATCH] unix/PidFile: fix empty PID file This was broken by 4f29034f. --- src/unix/PidFile.hxx | 3 +++ 1 file changed, 3 insertions(+) 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); }