aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
commit8f826df8fbadd811f6bcc31344e3d8472bd6f2bb (patch)
treeb58fefa9fefe9ebb3ecc7721c464d978a0fc41c8 /daemon.c
parentdd6e5c6501f58c49445f2d5b5da978183303f275 (diff)
downloadfetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.gz
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.bz2
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.zip
Code changes needed for next release.
svn path=/trunk/; revision=2552
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 5937524b..08366bf1 100644
--- a/daemon.c
+++ b/daemon.c
@@ -56,6 +56,7 @@ RETSIGTYPE
sigchld_handler (int sig)
/* process SIGCHLD to obtain the exit code of the terminating process */
{
+ extern volatile int lastsig; /* last signal received */
pid_t pid;
#if defined(HAVE_WAITPID) /* the POSIX way */
@@ -77,6 +78,7 @@ sigchld_handler (int sig)
wait(&status);
#endif
+ lastsig = SIGCHLD;
}
int