mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* 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:
parent
d0909d913a
commit
941fa5ad96
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user