Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-03 18:15:49 +0300
committerChristopher Faylor <me@cgf.cx>2003-03-03 18:15:49 +0300
commite11fe31b55313f541663d21635f40f2f5288c357 (patch)
tree1dccdb127d6bff2df3191f4484c3b1d14b7e8200
parent2b02bd3c3fa6514f98163e0286e8ec3e408eb907 (diff)
* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
fhandler_console::open_fhs here. (fhandler_pty_slave::close): Ditto for close.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ed3e4c667..d9b9bf0d5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index b3bb51aab..0aef7afaf 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -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;
}