From edacc32d007ba8dd0cb61f0c3daea81622a8b350 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 24 Aug 1996 14:09:50 +0000 Subject: Sendmail delivery from background seems to work. svn path=/trunk/; revision=61 --- daemon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index cfb6e53e..89ccdcd6 100644 --- a/daemon.c +++ b/daemon.c @@ -34,7 +34,7 @@ #include "popclient.h" -static void (*my_termhook)(void); +static void (*my_termhook)(int); /****************************************************************** function: sigchld_handler @@ -59,7 +59,7 @@ sigchld_handler () #endif if (my_termhook) - (*my_termhook)(); + (*my_termhook)(SIGCHLD); #if defined(HAVE_WAIT3) while ((pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0) @@ -85,14 +85,14 @@ sigchld_handler () logfile file to direct stdout and stderr to, if non-NULL. ret. value: none. - globals: refers to the address of sigchld_handler(). + globals: termhook, sigchld_handler(). calls: none. *****************************************************************/ int daemonize (logfile, termhook) const char *logfile; -void (*termhook)(void); +void (*termhook)(int); { int fd; pid_t childpid; -- cgit v1.2.3