From d8e7e40416df0118c66e0ec434d8beb1c628131c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 26 Nov 2011 19:20:13 +0000 Subject: * init.cc (remove): Don't bother calling through thread removal cleanup if we are exiting. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/init.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 32482a3cb..cccc8b17d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-11-26 Christopher Faylor + + * init.cc (remove): Don't bother calling through thread removal + cleanup if we are exiting. + 2011-11-26 Christopher Faylor * exceptions.cc (stackdump): Make global. diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 107d037f9..480a41ea3 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -150,6 +150,7 @@ 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); -- cgit v1.2.3