diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-08-24 14:09:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-08-24 14:09:50 +0000 |
commit | edacc32d007ba8dd0cb61f0c3daea81622a8b350 (patch) | |
tree | e81b5a5f59dd8ee9d63929eb493247764eaaeb48 /daemon.c | |
parent | 8ca05699193ee187e0fbad4f1dd7f97be855e07a (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |