should call _exit, not exit, from child processes.


svn:r3506
This commit is contained in:
Roger Dingledine 2005-02-03 06:40:06 +00:00
parent 0dc14b3b7d
commit f3b74a2adb

View File

@ -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
}