* 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> Sun Mar 11 16:00:58 2001 Christopher Faylor <cgf@cygnus.com>
* child_info.h: Bump magic number for fork/exec/spawn. * child_info.h: Bump magic number for fork/exec/spawn.

View File

@ -774,6 +774,7 @@ skip_arg_parsing:
case WAIT_OBJECT_0 + 2: case WAIT_OBJECT_0 + 2:
if (mode == _P_OVERLAY) if (mode == _P_OVERLAY)
{ {
if (myself->ppid_handle)
res |= EXIT_REPARENTING; res |= EXIT_REPARENTING;
if (!my_parent_is_alive ()) if (!my_parent_is_alive ())
{ {

View File

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