From 1df3fbe2db6c972b8e8bdc31b473718a39bf88fa Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 27 Dec 2003 01:59:29 +0000 Subject: * fhandler.h (fhandler_tty_master::fixup_after_fork): Remove declaration. (fhandler_tty_master::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_master::init): Fix so that children do not inherit master tty handles. (fhandler_tty_master::fixup_after_fork): Remove, since it was never used. (fhandler_tty_master::fixup_after_exec): Ditto. * pinfo.cc (_pinfo::set_ctty): Increment open_fhs when ctty is set. * cygheap.cc (cygheap_init): Ditto. * syscalls.cc (setsid): *Always* call close on opened ctty since the archetype is associated with the ctty and it counts as an opened handle. * tty.cc (tty::common_init): Don't protect input/output mutex since it confuses subsequent fork/execs when CYGWIN=tty. --- winsup/cygwin/tty.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/tty.h') diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h index 8153aaf4d..c5d01526f 100644 --- a/winsup/cygwin/tty.h +++ b/winsup/cygwin/tty.h @@ -87,7 +87,7 @@ class fhandler_pty_master; class tty: public tty_min { HANDLE get_event (const char *fmt, BOOL manual_reset = FALSE) - __attribute__ ((regparm (2))); + __attribute__ ((regparm (3))); public: HWND hwnd; /* Console window handle tty belongs to */ -- cgit v1.2.3