* 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.
This commit is contained in:
Christopher Faylor
2006-04-21 18:53:05 +00:00
parent 33b0abd1c3
commit f09acf77de
5 changed files with 33 additions and 15 deletions

View File

@ -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: