* cygtls.cc (_cygtls::fixup_after_fork): Just manipulate the signal stack if a

signal occurred during the parent's fork.  Otherwise leave it alone.
This commit is contained in:
Christopher Faylor 2004-03-16 04:39:38 +00:00
parent ff06cd9be9
commit e867f8f1d4
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2004-03-15 Christopher Faylor <cgf@redhat.com>
* cygtls.cc (_cygtls::fixup_after_fork): Just manipulate the signal
stack if a signal occurred during the parent's fork. Otherwise leave
it alone.
2004-03-15 Christopher Faylor <cgf@redhat.com>
* exceptions.cc (try_to_debug): Report on tid of caller.

View File

@ -138,12 +138,13 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
void
_cygtls::fixup_after_fork ()
{
sig = stacklock = 0;
if (sig)
{
pop ();
sig = 0;
}
stacklock = 0;
wq.thread_ev = NULL;
stackptr = stack + 1; // FIXME?
#ifdef DEBUGGING
memset (stackptr, 0, sizeof (stack) - sizeof (stack[0]));
#endif
}
void