summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-11-14 14:15:51 +0000
committerChristopher Faylor <me@cgf.cx>2005-11-14 14:15:51 +0000
commit548d0080af5f7740bbf667051e7e5cdea5c28071 (patch)
tree838b3dccdb7c70e7328c4d85345732fb10de395a /winsup/cygwin/fhandler.h
parent5a0826c3f84178498d91cd703d97791a691f6b30 (diff)
downloadcygnal-548d0080af5f7740bbf667051e7e5cdea5c28071.tar.gz
cygnal-548d0080af5f7740bbf667051e7e5cdea5c28071.tar.bz2
cygnal-548d0080af5f7740bbf667051e7e5cdea5c28071.zip
* fhandler.h (fhandler_console::fixup_after_fork_exec): Define with additional
bool parameter. (fhandler_console::fixup_after_exec): Accommodate fixup_after_fork_exec's parameter. (fhandler_console::fixup_after_fork): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Avoid opening new console only when close_on_exec AND execing.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 3e61f8297..5cfc44b2d 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -909,9 +909,9 @@ class fhandler_console: public fhandler_termios
select_record *select_read (select_record *s);
select_record *select_write (select_record *s);
select_record *select_except (select_record *s);
- void fixup_after_fork_exec ();
- void fixup_after_exec () {fixup_after_fork_exec ();}
- void fixup_after_fork (HANDLE) {fixup_after_fork_exec ();}
+ void fixup_after_fork_exec (bool);
+ void fixup_after_exec () {fixup_after_fork_exec (true);}
+ void fixup_after_fork (HANDLE) {fixup_after_fork_exec (false);}
void set_close_on_exec (bool val);
void set_input_state ();
void send_winch_maybe ();