diff options
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 5f8ebf31b..8ca49a5d1 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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); |