diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-06-27 04:12:12 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-06-27 04:12:12 +0000 |
commit | 0503f06089b89aa4166d6ced8d5901ad6a112c41 (patch) | |
tree | aaa6e2e863006d508628a0c7029a80b9abebf949 | |
parent | f855a7d01ab8401a307bb02cdcdee546df3e2423 (diff) | |
download | rsync-0503f06089b89aa4166d6ced8d5901ad6a112c41.tar.gz |
continue calling waitpid() while still reapingchildren (patch from
Matti Aarnio)
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |