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>2003-06-03 06:32:49 +0400
committerChristopher Faylor <me@cgf.cx>2003-06-03 06:32:49 +0400
commit0c8fe172781f9f2fc2aa2cd07effbbcca58a9a4e (patch)
tree002ef6710e6c8eaee08c2d0cf147d72e55f59ecf /winsup/cygwin/spawn.cc
parent38b524b3858c96cca78e32e80cb67509b38aab05 (diff)
* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc4
1 files changed, 2 insertions, 2 deletions
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 ();