OSDN Git Service

* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
authorcgf <cgf>
Sun, 27 Nov 2011 19:00:31 +0000 (19:00 +0000)
committercgf <cgf>
Sun, 27 Nov 2011 19:00:31 +0000 (19:00 +0000)
problems.

winsup/cygwin/ChangeLog
winsup/cygwin/init.cc

index cccc8b1..4192216 100644 (file)
@@ -1,6 +1,11 @@
+2011-11-27  Christopher Faylor  <me.cygwin2011@cgf.cx>
+
+       * init.cc (dll_entry): Revert previous change since it caused
+       inexplicable fork problems.
+
 2011-11-26  Christopher Faylor  <me.cygwin2011@cgf.cx>
 
-       * init.cc (remove): Don't bother calling through thread removal
+       * init.cc (dll_entry): Don't bother calling through thread removal
        cleanup if we are exiting.
 
 2011-11-26  Christopher Faylor  <me.cygwin2011@cgf.cx>
index 480a41e..107d037 100644 (file)
@@ -150,7 +150,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
       break;
     case DLL_THREAD_DETACH:
       if (dll_finished_loading
-         && exit_state < ES_FINAL
          && (PVOID) &_my_tls > (PVOID) &wow64_test_stack_marker
          && _my_tls.isinitialized ())
        _my_tls.remove (0);