summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-26 07:43:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-26 07:43:47 +0000
commit307be5a3f2004d4c30732ab7340152614412eaed (patch)
treef0e3f951c0209b9e4539415aac0ee0e60bb9bc76 /syslogd.c
parentd0a93ad442331d12ee474ee859ee4fef5474b98f (diff)
downloadrsyslog-307be5a3f2004d4c30732ab7340152614412eaed.tar.gz
rsyslog-307be5a3f2004d4c30732ab7340152614412eaed.tar.xz
rsyslog-307be5a3f2004d4c30732ab7340152614412eaed.zip
fixed a situation where rsyslogd could create zombie processes thanks to
mildew for the patch
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index a40930b0..dae93362 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3287,7 +3287,7 @@ static void reapchild()
{
int saved_errno = errno;
signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
- wait(NULL);
+ while(waitpid(-1, NULL, WNOHANG) > 0);
errno = saved_errno;
}