]> git.ozlabs.org Git - ccan/blobdiff - ccan/daemon-with-notify/daemon.c
update test case copied from daemonize to use some of daemon-with-notify features
[ccan] / ccan / daemon-with-notify / daemon.c
index 99f7125b62e849c0eaa94bd3cb6ff79015c2fe64..625d65579499b8786d8764f3de92d3ce7696ffb0 100644 (file)
@@ -38,8 +38,8 @@
 #include <unistd.h>
 #include <sys/select.h>
 
-int daemonize(int nochdir, int noclose, int wait_sigusr1);
-int daemon_is_ready(void);
+#include <ccan/daemon-with-notify/daemon.h>
+
 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;