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-12-27 04:59:29 +0300
committerChristopher Faylor <me@cgf.cx>2003-12-27 04:59:29 +0300
commit1df3fbe2db6c972b8e8bdc31b473718a39bf88fa (patch)
tree12bfaf8a6f6d1d05ed0551f0202ca4e31288a5f6 /winsup/cygwin/tty.cc
parent56b5feb639f51385da560289e1c1e65512fb3f67 (diff)
* 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/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 07c7a0a06..7e3aeb9c4 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -457,8 +457,8 @@ tty::common_init (fhandler_pty_master *ptym)
return false;
}
- ProtectHandle1INH (ptym->output_mutex, output_mutex);
- ProtectHandle1INH (ptym->input_mutex, input_mutex);
+ // /* screws up tty master */ ProtectHandle1INH (ptym->output_mutex, output_mutex);
+ // /* screws up tty master */ ProtectHandle1INH (ptym->input_mutex, input_mutex);
winsize.ws_col = 80;
winsize.ws_row = 25;