* init.cc (dll_entry): Call _my_tls.remove with INFINITE wait period
to avoid SEGVs and subsequent hangs in _cygtls::find_tls. * miscfuncs.cc (thread_wrapper): Ditto.
This commit is contained in:
@ -95,7 +95,7 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
|
||||
if (dll_finished_loading
|
||||
&& (PVOID) &_my_tls > (PVOID) &test_stack_marker
|
||||
&& _my_tls.isinitialized ())
|
||||
_my_tls.remove (0);
|
||||
_my_tls.remove (INFINITE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user