diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-21 00:58:29 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-21 00:58:29 +0400 |
commit | c50d56bc43deb5299e5e0602a4500aa035d47427 (patch) | |
tree | 8cc975b67f9a1748b1780df461acdf146e90676c /winsup/cygwin/fhandler_tty.cc | |
parent | b1711a1f96d2059216cedb9dadcb3d9479b4cb9d (diff) |
* fhandler.cc (fhandler_base::set_inheritance): Just use DUPLICATE_CLOSE_SOURCE
to change inheritance. Eliminate all other logic dealing with closed handles.
* fhandler.h (fhandler_base::set_inheritance): Reflect above change.
* fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index b0ee336aa..4aa3b0572 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1119,7 +1119,7 @@ fhandler_tty_common::set_close_on_exec (int val) /* FIXME: This is a duplication from fhandler_base::set_close_on_exec. It is here because we need to specify the "from_pty" stuff here or we'll get warnings from ForceCloseHandle when debugging. */ - set_inheritance (get_io_handle (), val, "from_pty"); + set_inheritance (get_io_handle (), val); set_close_on_exec_flag (val); #endif if (output_done_event) @@ -1130,10 +1130,10 @@ fhandler_tty_common::set_close_on_exec (int val) set_inheritance (ioctl_done_event, val); if (inuse) set_inheritance (inuse, val); - set_inheritance (output_mutex, val, "output_mutex"); - set_inheritance (input_mutex, val, "input_mutex"); + set_inheritance (output_mutex, val); + set_inheritance (input_mutex, val); set_inheritance (input_available_event, val); - set_inheritance (output_handle, val, "to_pty"); + set_inheritance (output_handle, val); } void |