* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.
* spawn.cc (spawn_guts): Set a flag when a process is not a cygwin process. * fhandler_tty.cc (fhandler_tty_slave::init): Remove previous change. Try a different method to determine when we should become the process group owner. * signal.cc (kill0): Remove archaic code which dealt with never-set flag.
This commit is contained in:
@ -548,8 +548,9 @@ loop:
|
||||
|
||||
PWCHAR cwd;
|
||||
cwd = NULL;
|
||||
if (!real_path.iscygexec())
|
||||
if (!real_path.iscygexec ())
|
||||
{
|
||||
myself->process_state |= PID_NOTCYGWIN;
|
||||
cygheap->cwd.cwd_lock.acquire ();
|
||||
cwd = cygheap->cwd.win32.Buffer;
|
||||
}
|
||||
@ -727,7 +728,8 @@ loop:
|
||||
{
|
||||
myself->set_has_pgid_children ();
|
||||
ProtectHandle (pi.hThread);
|
||||
pinfo child (cygpid, PID_IN_USE);
|
||||
pinfo child (cygpid,
|
||||
PID_IN_USE | (real_path.iscygexec () ? 0 : PID_NOTCYGWIN));
|
||||
if (!child)
|
||||
{
|
||||
syscall_printf ("pinfo failed");
|
||||
|
Reference in New Issue
Block a user