diff options
author | Roger Dingledine <arma@torproject.org> | 2005-02-03 06:40:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-02-03 06:40:06 +0000 |
commit | f3b74a2adb886d459536a51b4bc8360c22649289 (patch) | |
tree | c937786fb64c2aee2ee8dcff754e7630b1aa8fdb /src/common | |
parent | 0dc14b3b7dc072c6e31cce1544adf795767f1912 (diff) | |
download | tor-f3b74a2adb886d459536a51b4bc8360c22649289.tar.gz tor-f3b74a2adb886d459536a51b4bc8360c22649289.zip |
http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
should call _exit, not exit, from child processes.
svn:r3506
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 0b5de082cc..ae1b58653a 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -678,7 +678,9 @@ void spawn_exit() #elif defined(USE_PTHREADS) pthread_exit(NULL); #else - exit(0); + /* http://www.erlenstar.demon.co.uk/unix/faq_2.html says we should + * call _exit, not exit, from child processes. */ + _exit(0); #endif } |