* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.

This commit is contained in:
Christopher Faylor 2003-06-03 02:32:49 +00:00
parent 38b524b385
commit 0c8fe17278
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-06-02 Christopher Faylor <cgf@redhat.com>
* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
2003-06-02 Christopher Faylor <cgf@redhat.com>
* cygthread.h (cygthread::terminate_thread): Mark private.

View File

@ -800,9 +800,9 @@ spawn_guts (const char * prog_arg, const char *const *argv,
reset_signal_arrived ();
continue;
case WAIT_OBJECT_0 + 2:
if (myself->ppid_handle)
if (my_parent_is_alive ())
res |= EXIT_REPARENTING;
if (!my_parent_is_alive ())
else if (!myself->ppid_handle)
{
nwait = 2;
sigproc_terminate ();