X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fdaemon-with-notify%2Fdaemon.c;h=625d65579499b8786d8764f3de92d3ce7696ffb0;hb=8badbce50fdf6f49f8178c064c73f5e0f39174a9;hp=99f7125b62e849c0eaa94bd3cb6ff79015c2fe64;hpb=bc10f8a1322e56d2c2ee6273befcf05b736c9dd8;p=ccan diff --git a/ccan/daemon-with-notify/daemon.c b/ccan/daemon-with-notify/daemon.c index 99f7125b..625d6557 100644 --- a/ccan/daemon-with-notify/daemon.c +++ b/ccan/daemon-with-notify/daemon.c @@ -38,8 +38,8 @@ #include #include -int daemonize(int nochdir, int noclose, int wait_sigusr1); -int daemon_is_ready(void); +#include + void sigusr1_handler(int sig); pid_t parent_pid; @@ -50,7 +50,7 @@ void sigusr1_handler(int sig) _exit(EXIT_SUCCESS); } -int daemon_is_ready() +int daemon_is_ready(void) { kill(parent_pid, SIGUSR1); return 0;