[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Thu, 3 Feb 2005 01:40:09 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 03 Feb 2005 01:40:32 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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
}