* 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.
This commit is contained in:
Christopher Faylor 2006-01-08 21:34:00 +00:00
parent 3e45d281b3
commit 0b7094d95d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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;
}