* 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:
Christopher Faylor
2010-09-20 22:28:57 +00:00
parent 73b6b43ed3
commit df4d2bea3d
5 changed files with 23 additions and 15 deletions

View File

@@ -274,12 +274,6 @@ kill0 (pid_t pid, siginfo_t& si)
return -1;
}
/* Silently ignore stop signals from a member of orphaned process group.
FIXME: Why??? */
if (ISSTATE (myself, PID_ORPHANED) &&
(si.si_signo == SIGTSTP || si.si_signo == SIGTTIN || si.si_signo == SIGTTOU))
si.si_signo = 0;
return (pid > 0) ? pinfo (pid)->kill (si) : kill_pgrp (-pid, si);
}