summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-03 06:40:06 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-03 06:40:06 +0000
commitf3b74a2adb886d459536a51b4bc8360c22649289 (patch)
treec937786fb64c2aee2ee8dcff754e7630b1aa8fdb /src/common
parent0dc14b3b7dc072c6e31cce1544adf795767f1912 (diff)
downloadtor-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.c4
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
}