From 2799e45dc4ba7eb998f0b26ed62db7cd7ec4cb6e Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 6 Oct 2016 11:20:20 +1000 Subject: [PATCH] * fflush() on pidfile --- src/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon.c b/src/daemon.c index 746fde2..9ec3ea5 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -324,6 +324,7 @@ int main(int argc, char *argv[]) { exit(EXIT_FAILURE); } fprintf(pidfile, "%d\n", getpid()); + fflush(pidfile); } else { f2b_log_msg(log_warn, "can't open pidfile: %s", strerror(errno)); }