Browse Source

* fflush() on pidfile

master
Alex 'AdUser' Z 8 years ago
parent
commit
2799e45dc4
  1. 1
      src/daemon.c

1
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));
}

Loading…
Cancel
Save