diff options
author | Christopher Faylor <me@cgf.cx> | 2003-10-10 19:11:21 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-10-10 19:11:21 +0000 |
commit | 7cf29f96e01fbbc8a6305106c799aa35ba97d6f6 (patch) | |
tree | a5ee78e092483b4eb28701f2b41aa6cce740120b | |
parent | 4a204f662564c871b6cf89f9a595e1679131a460 (diff) | |
download | newlib-7cf29f96e01fbbc8a6305106c799aa35ba97d6f6.zip newlib-7cf29f96e01fbbc8a6305106c799aa35ba97d6f6.tar.gz newlib-7cf29f96e01fbbc8a6305106c799aa35ba97d6f6.tar.bz2 |
* fhandler_tty.cc (fhandler_tty_slave::open): Don't create a new window station
if one already exists.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ebfec72..f106d3f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 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 hMainProc initialization will allow user initialization to work. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 5f8ebf3..8ca49a5 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); |