Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-21 09:53:43 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-21 09:53:43 +0400
commiteca7c7291fe9882012a8cd4fbeb06beca45444e7 (patch)
tree3759afaa4d7703d43114eb781628af0268d10d82 /winsup/cygwin/spawn.cc
parentb0de2aa284ccb58f1c8f8e0a598701b51ab5b742 (diff)
* spawn.cc (spawn_guts): Don't do the reparenting step if we notice that the
child has exited prior to sending the subprocess_ready signal (?).
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index f6aafd7cf..b4d65ba2d 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -735,10 +735,6 @@ skip_arg_parsing:
exitcode = 1;
res |= exitcode;
exited = TRUE;
-
- if (nwait > 2 && !(res & EXIT_REPARENTING) &&
- (mode == _P_OVERLAY || mode == _P_VFORK))
- res |= EXIT_REPARENTING;
break;
case WAIT_OBJECT_0 + 1:
sigproc_printf ("signal arrived");
@@ -822,7 +818,7 @@ skip_arg_parsing:
case _P_OVERLAY:
ForceCloseHandle1 (pi.hProcess, childhProc);
proc_terminate ();
- myself->exit (0, 1);
+ myself->exit (res, 1);
break;
case _P_WAIT:
waitpid (cygpid, (int *) &res, 0);