]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
authorRoger Dingledine <arma@torproject.org>
Thu, 3 Feb 2005 06:40:06 +0000 (06:40 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 3 Feb 2005 06:40:06 +0000 (06:40 +0000)
should call _exit, not exit, from child processes.

svn:r3506

src/common/compat.c

index 0b5de082ccfe18c68e832056005dd00e17b3ee7d..ae1b58653a82be3bcb287bb70dbeb11f9425ac43 100644 (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
 }