* cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were
previously initialized. * cygtls.h (_cygtls::initialized): Move nearer the end to catch situation when Windows 98 mysteriously changes pieces of cygtls when thread is detaching. * gendef (__sigfe_maybe): Simplify slightly. * tlsoffsets.h: Regenerate.
This commit is contained in:
@@ -147,7 +147,10 @@ _cygtls::fixup_after_fork ()
|
||||
void
|
||||
_cygtls::remove (DWORD wait)
|
||||
{
|
||||
if (!isinitialized () || !locals.exitsock || exit_state >= ES_FINAL)
|
||||
if (!isinitialized ())
|
||||
return;
|
||||
initialized = 0;
|
||||
if (!locals.exitsock || exit_state >= ES_FINAL)
|
||||
return;
|
||||
|
||||
debug_printf ("wait %p", wait);
|
||||
|
Reference in New Issue
Block a user