* 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:
parent
ff06cd9be9
commit
e867f8f1d4
@ -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>
|
2004-03-15 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* exceptions.cc (try_to_debug): Report on tid of caller.
|
* exceptions.cc (try_to_debug): Report on tid of caller.
|
||||||
|
@ -138,12 +138,13 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
|
|||||||
void
|
void
|
||||||
_cygtls::fixup_after_fork ()
|
_cygtls::fixup_after_fork ()
|
||||||
{
|
{
|
||||||
sig = stacklock = 0;
|
if (sig)
|
||||||
|
{
|
||||||
|
pop ();
|
||||||
|
sig = 0;
|
||||||
|
}
|
||||||
|
stacklock = 0;
|
||||||
wq.thread_ev = NULL;
|
wq.thread_ev = NULL;
|
||||||
stackptr = stack + 1; // FIXME?
|
|
||||||
#ifdef DEBUGGING
|
|
||||||
memset (stackptr, 0, sizeof (stack) - sizeof (stack[0]));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user