From ce40c6baf7c779c6b2a63e41bf21596c96dff506 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 10 Dec 2003 03:19:19 +0000 Subject: * fhandler_tty.cc (fhandler_tty_common::dup): Just copy cygheap->ctty to child if duping the current ctty. (fhandler_tty_common::close): Move debugging statement earlier in function. (fhandler_tty_slave::close): Return success when closing ctty. * syscalls.cc (close_all_files): Avoid calling fhandler_tty_slave close method so that open_fhs will not be decremented when closing cygheap ctty. (setsid): Ditto. * dcrt0.cc (do_exit): Reorganize to avoid leaving a critical section active after vfork. * fhandler.h (fhandler_tty_slave::get_unit): Remove regparm parameter since it can't work in a virtualized function. --- winsup/cygwin/fhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 6014325b4..b90e3bfb6 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -918,7 +918,7 @@ class fhandler_tty_slave: public fhandler_tty_common _off64_t lseek (_off64_t, int) { return 0; } select_record *select_read (select_record *s); int cygserver_attach_tty (HANDLE*, HANDLE*); - int get_unit () __attribute__ ((regparm (1))); + int get_unit (); virtual char const *ttyname () { return pc.dev.name; } }; -- cgit v1.2.3