* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last tty
closes.
This commit is contained in:
@@ -583,7 +583,8 @@ fhandler_tty_slave::close ()
|
||||
{
|
||||
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);
|
||||
}
|
||||
return fhandler_tty_common::close ();
|
||||
|
Reference in New Issue
Block a user