* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
is allocated.
This commit is contained in:
parent
4e0d877875
commit
afa18d8a69
|
@ -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>
|
2003-04-18 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Use ${nostdlib} variable.
|
* Makefile.in: Use ${nostdlib} variable.
|
||||||
|
|
|
@ -554,7 +554,11 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t)
|
||||||
set_open_status ();
|
set_open_status ();
|
||||||
if (!output_done_event)
|
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 ("incremented open_fhs %d", fhandler_console::open_fhs);
|
||||||
}
|
}
|
||||||
termios_printf ("tty%d opened", ttynum);
|
termios_printf ("tty%d opened", ttynum);
|
||||||
|
|
Loading…
Reference in New Issue