mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
should call _exit, not exit, from child processes. svn:r3506
This commit is contained in:
parent
0dc14b3b7d
commit
f3b74a2adb
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user