aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_termios.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-29 03:18:41 +0000
committerChristopher Faylor <me@cgf.cx>2002-07-29 03:18:41 +0000
commiteb5720f25501cd7e9b8115bb0220bef058bb5afd (patch)
tree958e311a9e81265e3f16c62f24ebefd39cb12e74 /winsup/cygwin/fhandler_termios.cc
parentefd34df5a512a754690c75ac74d75929f7f6fd2d (diff)
downloadnewlib-eb5720f25501cd7e9b8115bb0220bef058bb5afd.zip
newlib-eb5720f25501cd7e9b8115bb0220bef058bb5afd.tar.gz
newlib-eb5720f25501cd7e9b8115bb0220bef058bb5afd.tar.bz2
* fhandler_console.cc (fhandler_console::read): Use appropriate kill_pgrp
method. * select.cc (peek_console): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Send "stopped" signal to entire process group as dictated by SUSv3. * termios.cc (tcsetattr): Detect when stopped signal sent and force a stop before setting anything.
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 778c096..d631fad 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -169,7 +169,7 @@ fhandler_termios::bg_check (int sig)
/* Don't raise a SIGTT* signal if we have already been interrupted
by another signal. */
if (WaitForSingleObject (signal_arrived, 0) != WAIT_OBJECT_0)
- _raise (sig);
+ kill_pgrp (myself->pgid, sig);
return bg_signalled;
setEIO: