diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 07:43:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-26 07:43:47 +0000 |
commit | 307be5a3f2004d4c30732ab7340152614412eaed (patch) | |
tree | f0e3f951c0209b9e4539415aac0ee0e60bb9bc76 /syslogd.c | |
parent | d0a93ad442331d12ee474ee859ee4fef5474b98f (diff) | |
download | rsyslog-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |