diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 5e27f00721..8f01b4f310 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -842,7 +842,7 @@ static int do_main_loop(void) { please_reset = 0; } if(please_reap_children) { - while(waitpid(-1,NULL,WNOHANG)) ; /* keep reaping until no more zombies */ + while(waitpid(-1,NULL,WNOHANG) > 0) ; /* keep reaping until no more zombies */ please_reap_children = 0; } #endif /* signal stuff */ |