From 3b26b6a2053c7e67bf9f9fae15edd2af20774a4f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 20 May 2006 04:19:47 +0000 Subject: * fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to need_invisible on first pty open. --- winsup/cygwin/fhandler_tty.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_tty.cc') diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 2cf551a9f..19759247a 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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)); -- cgit v1.2.3