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>2001-03-12 17:49:29 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-12 17:49:29 +0300
commit941fa5ad9686f2f33fc1a513727b53236b4017b3 (patch)
tree3c73421550b49f07c6f5e015448eefdb81e4bc45 /winsup/cygwin/spawn.cc
parentd0909d913a9b6d0b9bdbcf76af5ebb106ec65fa5 (diff)
* spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not a
cygwin process (suggested by Jason Gouger <cygwin@jason-gouger.com>).
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index e9d3659b2..431923dae 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -774,7 +774,8 @@ skip_arg_parsing:
case WAIT_OBJECT_0 + 2:
if (mode == _P_OVERLAY)
{
- res |= EXIT_REPARENTING;
+ if (myself->ppid_handle)
+ res |= EXIT_REPARENTING;
if (!my_parent_is_alive ())
{
nwait = 1;