* 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
(?).
This commit is contained in:
Christopher Faylor 2000-10-21 05:53:43 +00:00
parent b0de2aa284
commit eca7c7291f
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sat Oct 21 01:52:54 2000 Christopher Faylor <cgf@cygnus.com>
* 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
(?).
Sat Oct 21 00:46:36 2000 Christopher Faylor <cgf@cygnus.com> Sat Oct 21 00:46:36 2000 Christopher Faylor <cgf@cygnus.com>
* fhandler.h (fhandler_console): Remove tcsetpgrp. * fhandler.h (fhandler_console): Remove tcsetpgrp.

View File

@ -735,10 +735,6 @@ skip_arg_parsing:
exitcode = 1; exitcode = 1;
res |= exitcode; res |= exitcode;
exited = TRUE; exited = TRUE;
if (nwait > 2 && !(res & EXIT_REPARENTING) &&
(mode == _P_OVERLAY || mode == _P_VFORK))
res |= EXIT_REPARENTING;
break; break;
case WAIT_OBJECT_0 + 1: case WAIT_OBJECT_0 + 1:
sigproc_printf ("signal arrived"); sigproc_printf ("signal arrived");
@ -822,7 +818,7 @@ skip_arg_parsing:
case _P_OVERLAY: case _P_OVERLAY:
ForceCloseHandle1 (pi.hProcess, childhProc); ForceCloseHandle1 (pi.hProcess, childhProc);
proc_terminate (); proc_terminate ();
myself->exit (0, 1); myself->exit (res, 1);
break; break;
case _P_WAIT: case _P_WAIT:
waitpid (cygpid, (int *) &res, 0); waitpid (cygpid, (int *) &res, 0);