diff options
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index fe460a19b..ae03dc626 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -297,7 +297,7 @@ pthread::exit (void *value_ptr) ::exit (0); else { - _my_tls.remove (); + _my_tls.remove (INFINITE); ExitThread (0); } } @@ -1783,9 +1783,6 @@ pthread::thread_init_wrapper (void *arg) pthread *thread = (pthread *) arg; _my_tls.tid = thread; - exception_list cygwin_except_entry; - init_exceptions (&cygwin_except_entry); /* Initialize SIGSEGV handling, etc. */ - thread->mutex.lock (); // if thread is detached force cleanup on exit |