From: Andrew Tridgell Date: Sun, 27 Jun 1999 04:12:12 +0000 (+0000) Subject: continue calling waitpid() while still reapingchildren (patch from X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/0503f06089b89aa4166d6ced8d5901ad6a112c41 continue calling waitpid() while still reapingchildren (patch from Matti Aarnio) --- 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) {