diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 18486f8c4..7f17cfee8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-01-12 Christopher Faylor + + * fhandler_console.cc (set_console_state_for_spawn): Fix to recognize + ttys >= 0. + 2006-01-12 Christopher Faylor * fhandler.h (set_console_state_for_spawn): Whackamole the argument diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 5ca26d2f3..e3af92438 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -147,7 +147,7 @@ void __stdcall set_console_state_for_spawn (bool iscyg) { if (fhandler_console::need_invisible () || iscyg - || (myself->ctty > 0 && myself->ctty != TTY_CONSOLE)) + || (myself->ctty >= 0 && myself->ctty != TTY_CONSOLE)) return; HANDLE h = CreateFile ("CONIN$", GENERIC_READ, FILE_SHARE_WRITE,