* 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>).
This commit is contained in:
Christopher Faylor 2001-03-12 14:49:29 +00:00
parent d0909d913a
commit 941fa5ad96
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Mon Mar 12 09:47:55 2001 Christopher Faylor <cgf@cygnus.com>
* 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>).
Sun Mar 11 16:00:58 2001 Christopher Faylor <cgf@cygnus.com>
* child_info.h: Bump magic number for fork/exec/spawn.

View File

@ -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;

View File

@ -1004,16 +1004,15 @@ stat_dev (DWORD devn, int unit, unsigned long ino, struct stat *buf)
sigframe thisframe (mainthread);
switch (devn)
{
case FH_CONOUT:
case FH_PIPEW:
buf->st_mode = STD_WBITS;
break;
case FH_CONIN:
case FH_PIPER:
buf->st_mode = STD_RBITS;
break;
default:
buf->st_mode = STD_RBITS | S_IWUSR | S_IWGRP | S_IWOTH;
case FH_CONIN:
case FH_CONOUT:
buf->st_mode = STD_RBITS | STD_WBITS;
break;
}