summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_termios.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index fdf758918..d0751f81f 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -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);
}