diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-07 18:00:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-07 18:00:19 +0000 |
commit | b5c8e3312036d054998bad8fdb1f35ba9e7ff2c1 (patch) | |
tree | 8360752e290e001c1b92febf3cfd628aedb0787b | |
parent | 85c804ec4be56ccc5efe4691aeb936df23e6df16 (diff) | |
download | newlib-b5c8e3312036d054998bad8fdb1f35ba9e7ff2c1.zip newlib-b5c8e3312036d054998bad8fdb1f35ba9e7ff2c1.tar.gz newlib-b5c8e3312036d054998bad8fdb1f35ba9e7ff2c1.tar.bz2 |
* fhandler_console.cc (fhandler_console::need_invisible): Remove duplicate
test.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index add3892..d4f274d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2006-01-07 Christopher Faylor <cgf@timesys.com> + * fhandler_console.cc (fhandler_console::need_invisible): Remove + duplicate test. + +2006-01-07 Christopher Faylor <cgf@timesys.com> + * fhandler.h (set_console_state_for_spawn): Eliminate argument from declaration. * fhandler.cc (set_console_state_for_spawn): Eliminate argument from diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index a827921..2cf0219 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -144,7 +144,7 @@ tty_list::get_tty (int n) If it is, then just return. If the console has been initialized, then set it into a more friendly state for non-cygwin apps. */ void __stdcall -set_console_state_for_spawn (bool noncygwin_process) +set_console_state_for_spawn () { if (fhandler_console::need_invisible ()) return; @@ -1870,7 +1870,7 @@ fhandler_console::need_invisible () } else { - if (myself->ctty == -1 && oi.dwFlags & WSF_VISIBLE) + if (myself->ctty == -1) { h = CreateWindowStation (NULL, 0, WINSTA_ACCESS, NULL); termios_printf ("CreateWindowStation(NULL, %p), %E", h); |