]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_tty.cc (fhandler_tty_slave::open): Don't create a new window station
authorChristopher Faylor <me@cgf.cx>
Fri, 10 Oct 2003 19:11:21 +0000 (19:11 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 10 Oct 2003 19:11:21 +0000 (19:11 +0000)
if one already exists.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_tty.cc

index ebfec726d05fafc1f4d24ef012ccf1247f85025a..f106d3fe53db25c26322d1d5a5af75f8bd5c4aad 100644 (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
index 5f8ebf31b9f2e4c6c897a54a193689569a980fea..8ca49a5d126a15939c879888d588d9c988990725 100644 (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);
This page took 0.038495 seconds and 5 git commands to generate.