* fhandler_console.cc (set_console_state_for_spawn): Fix to recognize ttys >=

0.
This commit is contained in:
Christopher Faylor 2006-01-12 05:17:12 +00:00
parent 750874d33d
commit 9287bcd534
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-01-12 Christopher Faylor <cgf@timesys.com>
* fhandler_console.cc (set_console_state_for_spawn): Fix to recognize
ttys >= 0.
2006-01-12 Christopher Faylor <cgf@timesys.com>
* fhandler.h (set_console_state_for_spawn): Whackamole the argument

View File

@ -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,