From 6b37f83e6c9ef988859f83736d8620ff65e417c9 Mon Sep 17 00:00:00 2001 From: cgf Date: Sat, 20 May 2006 04:19:47 +0000 Subject: [PATCH] * fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to need_invisible on first pty open. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_tty.cc | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b4e21f716c..4e55b540d9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-05-20 Christopher Faylor + + * fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to + need_invisible on first pty open. + 2006-05-18 Christopher Faylor * fhandler_console.cc (fhandler_console::need_invisible): Allocate an diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 2cf551a9fa..19759247ab 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)); -- 2.11.0