diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-09 13:45:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-14 11:40:27 -0400 |
commit | 4ed03965a5a412bf58540e678f48f6c331ad30d9 (patch) | |
tree | 3f5b5783104d00129773c2e07a170b824373cf57 /src/or/main.c | |
parent | 87e16087b74d1348a1500a24cce238a2463822dc (diff) | |
download | tor-4ed03965a5a412bf58540e678f48f6c331ad30d9.tar.gz tor-4ed03965a5a412bf58540e678f48f6c331ad30d9.zip |
New waitpid-handler functions to run callbacks when a child exits.
Also, move 'procmon' into libor_event library, since it uses libevent.
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 6713d80368..2ca717459d 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -54,6 +54,7 @@ #include "routerparse.h" #include "statefile.h" #include "status.h" +#include "util_process.h" #include "ext_orport.h" #ifdef USE_DMALLOC #include <dmalloc.h> @@ -2097,8 +2098,7 @@ process_signal(uintptr_t sig) break; #ifdef SIGCHLD case SIGCHLD: - while (waitpid(-1,NULL,WNOHANG) > 0) ; /* keep reaping until no more - zombies */ + notify_pending_waitpid_callbacks(); break; #endif case SIGNEWNYM: { |