Browse Source

update test case copied from daemonize to use some of daemon-with-notify features

Stewart Smith 15 years ago
parent
commit
2d7217b3f7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ccan/daemon-with-notify/test/run.c

+ 3 - 3
ccan/daemon-with-notify/test/run.c

@@ -1,5 +1,4 @@
-#include <ccan/daemonize/daemonize.h>
-#include <ccan/daemonize/daemonize.c>
+#include <ccan/daemon-with-notify/daemon.h>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -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();