aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
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