From 8f826df8fbadd811f6bcc31344e3d8472bd6f2bb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 11 Sep 1999 02:23:28 +0000 Subject: Code changes needed for next release. svn path=/trunk/; revision=2552 --- daemon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon.c') 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 -- cgit v1.2.3