]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fork: Remember child not before success.
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Thu, 2 May 2019 10:12:44 +0000 (12:12 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 3 Jun 2019 16:43:45 +0000 (18:43 +0200)
commitf03ea8e1c57bd5cea83f6cd47fa02870bdfeb1c5
tree68f83d314f672eef216a2011cb2d6993a379055e
parenta8c23e4423ebb3458db93341d8a9bc73b0a04b03
Cygwin: fork: Remember child not before success.

Do not remember the child before it was successfully initialized, or we
would need more sophisticated cleanup on child initialization failure,
like cleaning up the process table and suppressing SIGCHILD delivery
with multiple threads ("waitproc") involved.  Compared to that, the
potential slowdown due to an extra yield () call should be negligible.
winsup/cygwin/fork.cc
This page took 0.029715 seconds and 5 git commands to generate.