diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-01 05:17:34 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-01 05:17:34 +0000 |
commit | e62ac9e86925090d0727605b33a1628d01b86158 (patch) | |
tree | e93ee4d420d352cc36cf1a9fbd530cf7f500f8d3 /winsup/cygwin/fhandler_tty.cc | |
parent | a26a4cdbe0572f4c83d91b7193d5c53828757125 (diff) | |
download | cygnal-e62ac9e86925090d0727605b33a1628d01b86158.tar.gz cygnal-e62ac9e86925090d0727605b33a1628d01b86158.tar.bz2 cygnal-e62ac9e86925090d0727605b33a1628d01b86158.zip |
* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
(setclexec_pid): New function for marking saved handle as close-on-exec.
(delete_handle): New function.
(debug_fixup_after_fork): New function.
* debug.h: Declare new functions, remove obsolete ones.
* fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles.
* fhandler.cc (fhandler_disk_file::close): Minor reorg.
(fhandler_base::set_inheritance): Set flag appropriately for debugging when
close-on-exec so forked process can delete closed handles.
* tty.h (open_output_mutex): Eliminate unneeded argument.
(open_input_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument
changes.
* fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool.
* tty.cc (tty::get_event): Eliminate unneeded argument.
(tty::common_init): Reflect change to get_event. Events should always be
inherited.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 5d51ca00a..dc6c3d396 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -479,13 +479,13 @@ fhandler_tty_slave::open (const char *, int flags, mode_t) __small_sprintf (buf, OUTPUT_DONE_EVENT, ttynum); output_done_event = OpenEvent (EVENT_ALL_ACCESS, TRUE, buf); - if (!(output_mutex = get_ttyp ()->open_output_mutex (TRUE))) + if (!(output_mutex = get_ttyp ()->open_output_mutex ())) { termios_printf ("open output mutex failed, %E"); __seterrno (); return 0; } - if (!(input_mutex = get_ttyp ()->open_input_mutex (TRUE))) + if (!(input_mutex = get_ttyp ()->open_input_mutex ())) { termios_printf ("open input mutex failed, %E"); __seterrno (); |