X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4c3b4b25573f0eed181107097c040afc3e0ac4e1..0503f06089b89aa4166d6ced8d5901ad6a112c41:/socket.c 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) {