From 5a0826c3f84178498d91cd703d97791a691f6b30 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 14 Nov 2005 05:36:16 +0000 Subject: * 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 #. --- winsup/cygwin/fhandler_tty.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler_tty.cc') 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; -- cgit v1.2.3