From da915a3aa6868a0815616ff4ba7904081968de23 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 8 Dec 2003 06:27:05 +0000 Subject: * fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it is guaranteed to be accurate. * fhandler_tty.cc (fhandler_tty_slave::open): Increment open_fhs appropriate when copying ctty. (fhandler_tty_slave::close): Remove special case handling for exit_state. Use ctty < 0 check instead. (fhandler_tty_common::close): Set io_handle to NULL after closing. * syscalls.cc (close_all_files): Specifically close cygheap->ctty, if appropriate. --- winsup/cygwin/fhandler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index d9212fe60..6014325b4 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -919,6 +919,7 @@ class fhandler_tty_slave: public fhandler_tty_common select_record *select_read (select_record *s); int cygserver_attach_tty (HANDLE*, HANDLE*); int get_unit () __attribute__ ((regparm (1))); + virtual char const *ttyname () { return pc.dev.name; } }; class fhandler_pty_master: public fhandler_tty_common -- cgit v1.2.3