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_tty.cc | |
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_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 0afc1a0c4..3bf524e11 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -450,8 +450,7 @@ fhandler_tty_slave::open (int flags, mode_t) { if (get_device () == FH_TTY) pc.dev.tty_to_real_device (); - fhandler_tty_slave *arch = (fhandler_tty_slave *) - cygheap->fdtab.find_archetype (pc.dev); + fhandler_tty_slave *arch = (fhandler_tty_slave *) cygheap->fdtab.find_archetype (pc.dev); if (arch) { *this = *(fhandler_tty_slave *) arch; |