* 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:
Christopher Faylor
2006-03-13 04:26:57 +00:00
parent 51f90b2f01
commit 9badd94adb
5 changed files with 112 additions and 100 deletions

View File

@@ -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);