* 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.
This commit is contained in:
Christopher Faylor
2002-07-29 03:18:41 +00:00
parent efd34df5a5
commit eb5720f255
6 changed files with 61 additions and 16 deletions

View File

@@ -661,7 +661,7 @@ peek_console (select_record *me, bool)
else
{
if (irec.EventType == WINDOW_BUFFER_SIZE_EVENT)
kill_pgrp (fh->tc->getpgid (), SIGWINCH);
fh->tc->kill_pgrp (SIGWINCH);
else if (irec.EventType == MOUSE_EVENT &&
(irec.Event.MouseEvent.dwEventFlags == 0 ||
irec.Event.MouseEvent.dwEventFlags == DOUBLE_CLICK))