summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-06-27 04:12:12 +0000
committerAndrew Tridgell <tridge@samba.org>1999-06-27 04:12:12 +0000
commit0503f06089b89aa4166d6ced8d5901ad6a112c41 (patch)
treeaaa6e2e863006d508628a0c7029a80b9abebf949 /socket.c
parentf855a7d01ab8401a307bb02cdcdee546df3e2423 (diff)
downloadrsync-0503f06089b89aa4166d6ced8d5901ad6a112c41.tar.gz
continue calling waitpid() while still reapingchildren (patch from
Matti Aarnio)
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index eb25d8cc..4c81d597 100644
--- a/socket.c
+++ b/socket.c
@@ -255,7 +255,7 @@ void start_accept_loop(int port, int (*fn)(int ))
but I have had reports that on Digital Unix zombies
are produced, so this ensures that they are reaped */
#ifdef WNOHANG
- waitpid(-1, NULL, WNOHANG);
+ while (waitpid(-1, NULL, WNOHANG) > 0);
#endif
if (fork()==0) {