diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-06 01:04:24 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-06 01:04:24 +0000 |
commit | a448b8cf342529e055bf518fb181eacc7303c689 (patch) | |
tree | 755e0d671dcd0ea6dc664d3bbcb47ad9ce629f56 /winsup/cygwin/fhandler_tty.cc | |
parent | 3cf6936e3bace15bdac5654688ea08c110774aa3 (diff) | |
download | cygnal-a448b8cf342529e055bf518fb181eacc7303c689.tar.gz cygnal-a448b8cf342529e055bf518fb181eacc7303c689.tar.bz2 cygnal-a448b8cf342529e055bf518fb181eacc7303c689.zip |
* fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record it
as non-inheritable for debugging purposes in case there is a subsequent fork or
exec.
* fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Allow fork_fixup to
call ProtecHandle.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index a279180d2..0c1cf5c42 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1143,15 +1143,9 @@ fhandler_tty_common::fixup_after_fork (HANDLE parent) if (ioctl_done_event) fork_fixup (parent, ioctl_done_event, "ioctl_done_event"); if (output_mutex) - { - fork_fixup (parent, output_mutex, "output_mutex"); - ProtectHandle (output_mutex); - } + fork_fixup (parent, output_mutex, "output_mutex"); if (input_mutex) - { - fork_fixup (parent, input_mutex, "input_mutex"); - ProtectHandle (input_mutex); - } + fork_fixup (parent, input_mutex, "input_mutex"); if (input_available_event) fork_fixup (parent, input_available_event, "input_available_event"); fork_fixup (parent, inuse, "inuse"); |