aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-08-24 14:09:50 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-08-24 14:09:50 +0000
commitedacc32d007ba8dd0cb61f0c3daea81622a8b350 (patch)
treee81b5a5f59dd8ee9d63929eb493247764eaaeb48 /daemon.c
parent8ca05699193ee187e0fbad4f1dd7f97be855e07a (diff)
downloadfetchmail-edacc32d007ba8dd0cb61f0c3daea81622a8b350.tar.gz
fetchmail-edacc32d007ba8dd0cb61f0c3daea81622a8b350.tar.bz2
fetchmail-edacc32d007ba8dd0cb61f0c3daea81622a8b350.zip
Sendmail delivery from background seems to work.
svn path=/trunk/; revision=61
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c8
1 files changed, 4 insertions, 4 deletions
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;