From 0c8fe172781f9f2fc2aa2cd07effbbcca58a9a4e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 3 Jun 2003 02:32:49 +0000 Subject: * spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist. --- winsup/cygwin/spawn.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/spawn.cc') diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index e92aa29df..b6ec1b9b4 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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 (); -- cgit v1.2.3