From: Stewart Smith Date: Fri, 11 Feb 2011 00:17:44 +0000 (+1100) Subject: update test case copied from daemonize to use some of daemon-with-notify features X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=2d7217b3f7b262665e8ccbe63e00a338530c1f37 update test case copied from daemonize to use some of daemon-with-notify features --- diff --git a/ccan/daemon-with-notify/test/run.c b/ccan/daemon-with-notify/test/run.c index 9bb966da..55c0dc5d 100644 --- a/ccan/daemon-with-notify/test/run.c +++ b/ccan/daemon-with-notify/test/run.c @@ -1,5 +1,4 @@ -#include -#include +#include #include #include #include @@ -34,7 +33,8 @@ int main(int argc, char *argv[]) if (pid == 0) { char buffer[2]; pid = getpid(); - daemonize(); + daemonize(0, 0, 1); + daemon_is_ready(); /* Keep valgrind happy about uninitialized bytes. */ memset(&daemonized, 0, sizeof(daemonized)); daemonized.pid = getpid();