* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last tty
closes.
This commit is contained in:
parent
f496071c40
commit
9501a0a1c7
|
@ -1,3 +1,8 @@
|
||||||
|
2003-06-07 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when
|
||||||
|
last tty closes.
|
||||||
|
|
||||||
2003-06-07 Thomas Pfaff <tpfaff@gmx.net>
|
2003-06-07 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::connect): Change error
|
* fhandler_socket.cc (fhandler_socket::connect): Change error
|
||||||
|
|
|
@ -583,7 +583,8 @@ fhandler_tty_slave::close ()
|
||||||
{
|
{
|
||||||
if (!output_done_event)
|
if (!output_done_event)
|
||||||
{
|
{
|
||||||
fhandler_console::open_fhs--;
|
if (!--fhandler_console::open_fhs && myself->ctty == -1)
|
||||||
|
FreeConsole ();
|
||||||
termios_printf ("decremented open_fhs %d", fhandler_console::open_fhs);
|
termios_printf ("decremented open_fhs %d", fhandler_console::open_fhs);
|
||||||
}
|
}
|
||||||
return fhandler_tty_common::close ();
|
return fhandler_tty_common::close ();
|
||||||
|
|
Loading…
Reference in New Issue