* fhandler_termios.cc (tty_min::kill_pgrp): Don't send a signal to myself if

this process is exiting.
This commit is contained in:
Christopher Faylor 2013-10-18 20:56:19 +00:00
parent 71ba0d76ba
commit bb0dc1c297
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-10-18 Christopher Faylor <me.cygwin2013@cgf.cx>
* fhandler_termios.cc (tty_min::kill_pgrp): Don't send a signal to
myself if this process is exiting.
2013-10-18 Christopher Faylor <me.cygwin2013@cgf.cx>
* tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is

View File

@ -137,7 +137,7 @@ tty_min::kill_pgrp (int sig)
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
continue;
if (p == myself)
killself = sig != __SIGSETPGRP;
killself = sig != __SIGSETPGRP && !exit_state;
else
sig_send (p, si);
}