* fhandler_tty.cc (fhandler_tty_slave::open): Don't create a new window station

if one already exists.
This commit is contained in:
Christopher Faylor 2003-10-10 19:11:21 +00:00
parent 4a204f6625
commit 7cf29f96e0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-10 Christopher Faylor <cgf@redhat.com>
* fhandler_tty.cc (fhandler_tty_slave::open): Don't create a new window
station if one already exists.
2003-10-10 Christopher Faylor <cgf@redhat.com>
* shared.cc (shared_info::initialize): Remove myself check since

View File

@ -559,7 +559,8 @@ fhandler_tty_slave::open (int flags, mode_t)
set_open_status ();
if (fhandler_console::open_fhs++ == 0 && !GetConsoleCP ()
&& !output_done_event && wincap.pty_needs_alloc_console ())
&& !output_done_event && wincap.pty_needs_alloc_console ()
&& !GetProcessWindowStation ())
{
BOOL b;
HWINSTA h = CreateWindowStation (NULL, 0, GENERIC_READ | GENERIC_WRITE, &sec_none_nih);