]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
authorChristopher Faylor <me@cgf.cx>
Sat, 19 Apr 2003 02:04:55 +0000 (02:04 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 19 Apr 2003 02:04:55 +0000 (02:04 +0000)
is allocated.

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

index f804da3ebb8e5583fe31945aac335cdeda493042..d1c9abe6fed724f4d7014a7f2a5cf6d718e06191 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 2361643d9efa8e7df8e0d5be55183a1700d9e6be..00147103aaf2b3cb18798bbe6f3ae300218a1f16 100644 (file)
@@ -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);
This page took 0.034539 seconds and 5 git commands to generate.