From f09acf77dea138412eebf78d361ba94433f4a375 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 21 Apr 2006 18:53:05 +0000 Subject: * tty.h (tty::hwnd): Move to tty_min. (tty::gethwnd): Ditto. (tty::sethwnd): Ditto. (tty_min::hwnd): Receive variable from tty class. (tty_min::gethwnd): Receive function from tty classs. (tty_min::sethwnd): Ditto. * dtable.cc (dtable::stdio_init): Only call init_console_handler when we actually own the console. * fhandler_console.cc (fhandler_console::get_tty_stuff): Set tty's hwnd to non-zero value. * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Semi-reinstate handling of console when pgrp is set. --- winsup/cygwin/fhandler_termios.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/fhandler_termios.cc') diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index 3475f5ed5..9b8d3597e 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -82,6 +82,7 @@ fhandler_termios::tcsetpgrp (const pid_t pgid) { case bg_ok: tc->setpgid (pgid); + init_console_handler (tc->gethwnd ()); res = 0; break; case bg_signalled: -- cgit v1.2.3