* 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:
@ -155,6 +155,7 @@ enum
|
||||
PID_STOPPED = 0x00004, /* Waiting for SIGCONT. */
|
||||
PID_TTYIN = 0x00008, /* Waiting for terminal input. */
|
||||
PID_TTYOU = 0x00010, /* Waiting for terminal output. */
|
||||
PID_NOTCYGWIN = 0x00080, /* Set if process is not a cygwin app. */
|
||||
PID_ORPHANED = 0x00020, /* Member of an orphaned process group. */
|
||||
PID_ACTIVE = 0x00040, /* Pid accepts signals. */
|
||||
PID_CYGPARENT = 0x00080, /* Set if parent was a cygwin app. */
|
||||
|
Reference in New Issue
Block a user