summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-27 01:59:29 +0000
committerChristopher Faylor <me@cgf.cx>2003-12-27 01:59:29 +0000
commit1df3fbe2db6c972b8e8bdc31b473718a39bf88fa (patch)
tree12bfaf8a6f6d1d05ed0551f0202ca4e31288a5f6 /winsup/cygwin/fhandler.h
parent56b5feb639f51385da560289e1c1e65512fb3f67 (diff)
downloadcygnal-1df3fbe2db6c972b8e8bdc31b473718a39bf88fa.tar.gz
cygnal-1df3fbe2db6c972b8e8bdc31b473718a39bf88fa.tar.bz2
cygnal-1df3fbe2db6c972b8e8bdc31b473718a39bf88fa.zip
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 3e0f3fb3a..5cbf387da 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -890,7 +890,7 @@ class fhandler_tty_common: public fhandler_termios
virtual int dup (fhandler_base *child);
- tty *get_ttyp () { return (tty *)tc; }
+ tty *get_ttyp () { return (tty *) tc; }
int close ();
void set_close_on_exec (int val);
@@ -969,8 +969,6 @@ class fhandler_tty_master: public fhandler_pty_master
int init ();
int init_console ();
void set_winsize (bool);
- void fixup_after_fork (HANDLE parent);
- void fixup_after_exec (HANDLE);
bool is_slow () {return 1;}
};