Преглед изворни кода

http://www.erlenstar.demon.co.uk/unix/faq_2.html says we
should call _exit, not exit, from child processes.


svn:r3506

Roger Dingledine пре 20 година
родитељ
комит
f3b74a2adb
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/common/compat.c

+ 3 - 1
src/common/compat.c

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