* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment

fhandler_console::open_fhs here.
(fhandler_pty_slave::close): Ditto for close.
This commit is contained in:
Christopher Faylor 2003-03-03 15:15:49 +00:00
parent 2b02bd3c3f
commit e11fe31b55
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-03-03 Christopher Faylor <cgf@redhat.com>
* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
fhandler_console::open_fhs here.
(fhandler_pty_slave::close): Ditto for close.
2003-03-02 Christopher Faylor <cgf@redhat.com>
* lib/getopt.c: Refresh from NetBSD sources.

View File

@ -552,6 +552,7 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t)
set_output_handle (to_master_local);
set_open_status ();
fhandler_console::open_fhs++;
termios_printf ("tty%d opened", ttynum);
return 1;
@ -1057,6 +1058,7 @@ fhandler_tty_common::close ()
termios_printf ("CloseHandle (get_output_handle ()<%p>), %E", get_output_handle ());
inuse = NULL;
fhandler_console::open_fhs++;
termios_printf ("tty%d <%p,%p> closed", ttynum, get_handle (), get_output_handle ());
return 0;
}