* fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to need_invisible

on first pty open.
This commit is contained in:
Christopher Faylor
2006-05-20 04:19:47 +00:00
parent 38f9b109b4
commit 3b26b6a205
2 changed files with 8 additions and 1 deletions

View File

@@ -576,7 +576,9 @@ fhandler_tty_slave::open (int flags, mode_t)
set_output_handle (to_master_local);
set_open_status ();
cygheap->manage_console_count ("fhandler_tty_slave::open", 1);
if (cygheap->manage_console_count ("fhandler_tty_slave::open", 1) == 1
&& !output_done_event)
fhandler_console::need_invisible ();
// FIXME: Do this better someday
arch = (fhandler_tty_slave *) cmalloc (HEAP_ARCHETYPES, sizeof (*this));