aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-01-08 21:34:00 +0000
committerChristopher Faylor <me@cgf.cx>2006-01-08 21:34:00 +0000
commit0b7094d95dd60849718b441b07c81a36432ac1e4 (patch)
treef34aa14dbf440fd22ab58078ebdf70b49ead18d3
parent3e45d281b3104c07b81579389dba0321edbf146d (diff)
downloadnewlib-0b7094d95dd60849718b441b07c81a36432ac1e4.zip
newlib-0b7094d95dd60849718b441b07c81a36432ac1e4.tar.gz
newlib-0b7094d95dd60849718b441b07c81a36432ac1e4.tar.bz2
* 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.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c6ee419..b8afb7f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2006-01-08 Christopher Faylor <cgf@timesys.com>
+ * 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 <cgf@timesys.com>
+
* environ.cc (spenvs[]): windir -> WINDIR.
2006-01-07 Christopher Faylor <cgf@timesys.com>
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index c9d96a4..258b1e2 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;
}