diff options
author | Christopher Faylor <me@cgf.cx> | 2005-11-14 05:36:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-11-14 05:36:16 +0000 |
commit | 5a0826c3f84178498d91cd703d97791a691f6b30 (patch) | |
tree | c22575ad34b31a92cad5a2448368327603a63b1d /winsup/cygwin/fhandler.h | |
parent | 59297e046420341bea04797159ee62b544c2295d (diff) | |
download | cygnal-5a0826c3f84178498d91cd703d97791a691f6b30.tar.gz cygnal-5a0826c3f84178498d91cd703d97791a691f6b30.tar.bz2 cygnal-5a0826c3f84178498d91cd703d97791a691f6b30.zip |
* fhandler.h (fhandler_console::fixup_after_fork_exec): Declare new function.
(fhandler_console::fixup_after_fork): Use fixup_after_fork_exec.
(fhandler_console::fixup_after_exec): Ditto.
* fhandler_console.cc (fhandler_console::fixup_after_fork): Delete definition.
(fhandler_console::fixup_after_fork_exec): Rename from fixup_after_exec.
* pinfo.cc (_pinfo::set_ctty): Don't play with console count here.
* syscalls.cc (close_all_files): Don't close cygheap ctty if hExeced since the
child will be copying information from us.
(setsid): Use myctty() rather than raw ctty #.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 66ccf1e83..3e61f8297 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -909,9 +909,10 @@ 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_exec (); + void fixup_after_fork_exec (); + void fixup_after_exec () {fixup_after_fork_exec ();} + void fixup_after_fork (HANDLE) {fixup_after_fork_exec ();} void set_close_on_exec (bool val); - void fixup_after_fork (HANDLE parent); void set_input_state (); void send_winch_maybe (); static tty_min *get_tty_stuff (int); |