-/* $Header: /cvsroot/wikipedia/willow/src/bin/willow/daemon.c,v 1.1 2005/05/02 19:15:21 kateturner Exp $ */
-/* $NetBSD: daemon.c,v 1.9 2003/08/07 16:42:46 agc Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
* SUCH DAMAGE.
*/
-#if defined __SUNPRO_C || defined __DECC || defined __HP_cc
-# pragma ident "@(#)$Header: /cvsroot/wikipedia/willow/src/bin/willow/daemon.c,v 1.1 2005/05/02 19:15:21 kateturner Exp $"
-# pragma ident "$NetBSD: daemon.c,v 1.9 2003/08/07 16:42:46 agc Exp $"
-#endif
-
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#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;
_exit(EXIT_SUCCESS);
}
-int daemon_is_ready()
+int daemon_is_ready(void)
{
kill(parent_pid, SIGUSR1);
return 0;