* dll_list::detach (dll_list::detach): Avoid doing anything with detach during
a failing fork.
This commit is contained in:
parent
3521d50480
commit
975757698f
@ -1,3 +1,8 @@
|
|||||||
|
2011-05-04 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* dll_list::detach (dll_list::detach): Avoid doing anything with detach
|
||||||
|
during a failing fork.
|
||||||
|
|
||||||
2011-05-04 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-05-04 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* dll_init.cc (dll_global_dtors): Avoid calling destructors during
|
* dll_init.cc (dll_global_dtors): Avoid calling destructors during
|
||||||
|
@ -181,7 +181,10 @@ void
|
|||||||
dll_list::detach (void *retaddr)
|
dll_list::detach (void *retaddr)
|
||||||
{
|
{
|
||||||
dll *d;
|
dll *d;
|
||||||
if (!myself)
|
/* Don't attempt to call destructors if we're still in fork processing
|
||||||
|
since that likely means fork is failing and everything will not have been
|
||||||
|
set up. */
|
||||||
|
if (!myself || in_forkee)
|
||||||
return;
|
return;
|
||||||
guard (true);
|
guard (true);
|
||||||
if ((d = find (retaddr)))
|
if ((d = find (retaddr)))
|
||||||
|
Loading…
Reference in New Issue
Block a user