diff options
author | Christopher Faylor <me@cgf.cx> | 2003-04-19 02:04:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-04-19 02:04:55 +0000 |
commit | afa18d8a69f469b0bf2cd1da79d1ae93382129e5 (patch) | |
tree | 9b2971aac224cceb5b26678bb66763e5989fb35d | |
parent | 4e0d877875e441eab6b58903fbc982f6961e3aa9 (diff) | |
download | cygnal-afa18d8a69f469b0bf2cd1da79d1ae93382129e5.tar.gz cygnal-afa18d8a69f469b0bf2cd1da79d1ae93382129e5.tar.bz2 cygnal-afa18d8a69f469b0bf2cd1da79d1ae93382129e5.zip |
* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
is allocated.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f804da3eb..d1c9abe6f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-04-18 Christopher Faylor <cgf@redhat.com> + * fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console + whenever a pty is allocated. + +2003-04-18 Christopher Faylor <cgf@redhat.com> + * Makefile.in: Use ${nostdlib} variable. 2003-04-18 Diego Biurrun <diego@biurrun.de> diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 2361643d9..00147103a 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -554,7 +554,11 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t) set_open_status (); if (!output_done_event) { - fhandler_console::open_fhs++; + if (fhandler_console::open_fhs++ == 0) + { + BOOL b = AllocConsole (); + termios_printf ("%d = AllocConsole ()", b); + } termios_printf ("incremented open_fhs %d", fhandler_console::open_fhs); } termios_printf ("tty%d opened", ttynum); |