From 0b7094d95dd60849718b441b07c81a36432ac1e4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 8 Jan 2006 21:34:00 +0000 Subject: [PATCH] * fhandler_tty.cc (fhandler_tty_slave::dup): Don't assign a controlling terminal to a process when duped. Linux doesn't do this, so we won't either. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_tty.cc | 2 ++ 2 files changed, 8 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c6ee41922..b8afb7fe8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2006-01-08 Christopher Faylor + + * fhandler_tty.cc (fhandler_tty_slave::dup): Don't assign a controlling + terminal to a process when duped. Linux doesn't do this, so we won't + either. + 2006-01-08 Christopher Faylor * environ.cc (spenvs[]): windir -> WINDIR. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index c9d96a4b1..258b1e2ef 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -907,7 +907,9 @@ fhandler_tty_slave::dup (fhandler_base *child) arch->usecount++; cygheap->manage_console_count ("fhandler_tty_slave::dup", 1); report_tty_counts (child, "duped", ""); +#if 0 // CGF: Remove this again as it screws up expect myself->set_ctty (get_ttyp (), openflags, arch); +#endif return 0; }