[or-cvs] http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
Roger Dingledine
arma at seul.org
Thu Feb 3 06:40:09 UTC 2005
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
compat.c
Log Message:
http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
should call _exit, not exit, from child processes.
Index: compat.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- compat.c 27 Jan 2005 22:34:47 -0000 1.30
+++ compat.c 3 Feb 2005 06:40:06 -0000 1.31
@@ -678,7 +678,9 @@
#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
}
More information about the tor-commits
mailing list