Cygwin: pinfo: stop remember doing reattach
During fork, the child process requires the process table to be
initialized for fixup_shms_after_fork, while still allowing subsequent
dlls.load_after_fork to fail silently (for when the "forkable" hardlinks
are not created yet).
pinfo::remember not performing reattach anymore requires explicit
pinfo::reattach now where appropriate.
Prepares to improve "Cygwin: fork: Remember child not before success."
commit f03ea8e1c5
, which leads to fork
problems if cygserver is running:
https://cygwin.com/ml/cygwin-patches/2019-q2/msg00155.html
This commit is contained in:
committed by
Corinna Vinschen
parent
6661a67747
commit
23a779bf3d
@@ -421,6 +421,14 @@ frok::parent (volatile char * volatile stack_here)
|
||||
this_errno = EAGAIN;
|
||||
#ifdef DEBUGGING0
|
||||
error ("child remember failed");
|
||||
#endif
|
||||
goto cleanup;
|
||||
}
|
||||
if (!child.reattach ())
|
||||
{
|
||||
this_errno = EAGAIN;
|
||||
#ifdef DEBUGGING0
|
||||
error ("child reattach failed");
|
||||
#endif
|
||||
goto cleanup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user