diff options
author | Roger Dingledine <arma@torproject.org> | 2004-08-08 07:25:45 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-08-08 07:25:45 +0000 |
commit | 05790d17225f5ba71d378f49c52cba7ed20d43ee (patch) | |
tree | 646b23c1ca045de9a3cc14cf34c2a9a2fceea05b /src/or/cpuworker.c | |
parent | 76b284d2af2397c98b76e82369f977539eaf37bd (diff) | |
download | tor-05790d17225f5ba71d378f49c52cba7ed20d43ee.tar.gz tor-05790d17225f5ba71d378f49c52cba7ed20d43ee.zip |
let children survive sigint, sigterm, etc.
this was biting us because ^c would get delivered to all of them,
maybe because they were all still listening to stdin?
svn:r2197
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 4e66a40f49..6abcab5d9a 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -207,6 +207,7 @@ static int cpuworker_main(void *data) { #ifndef MS_WINDOWS connection_free_all(); /* so the child doesn't hold the parent's fd's open */ #endif + handle_signals(0); /* ignore interrupts from the keyboard, etc */ dup_onion_keys(&onion_key, &last_onion_key); |