From 2d7217b3f7b262665e8ccbe63e00a338530c1f37 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 11 Feb 2011 11:17:44 +1100 Subject: [PATCH] update test case copied from daemonize to use some of daemon-with-notify features --- ccan/daemon-with-notify/test/run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.2