Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-10-19 00:56:19 +0400
committerChristopher Faylor <me@cgf.cx>2013-10-19 00:56:19 +0400
commitbb0dc1c297478b322c0fca747a941352e97cf786 (patch)
treed7684eeca161a5a2c07878cd442668756abac078 /winsup/cygwin/fhandler_termios.cc
parent71ba0d76ba8d5ec6719fcf3319e023bc0e2a9308 (diff)
* fhandler_termios.cc (tty_min::kill_pgrp): Don't send a signal to myself if
this process is exiting.
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);
}