* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty

is allocated.
This commit is contained in:
Christopher Faylor 2003-04-19 02:04:55 +00:00
parent 4e0d877875
commit afa18d8a69
2 changed files with 10 additions and 1 deletions

View 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.

View 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);