From: Roger Dingledine Date: Thu, 3 Feb 2005 06:40:06 +0000 (+0000) Subject: http://www.erlenstar.demon.co.uk/unix/faq_2.html says we X-Git-Tag: tor-0.1.0.1-rc~334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3b74a2adb886d459536a51b4bc8360c22649289;p=thirdparty%2Ftor.git http://www.erlenstar.demon.co.uk/unix/faq_2.html says we should call _exit, not exit, from child processes. svn:r3506 --- 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 }