* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a

filehandle.
This commit is contained in:
Christopher Faylor 2001-05-13 18:05:52 +00:00
parent cbedbdd029
commit 49a8c92ca3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun May 13 14:02:36 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when
duping a filehandle.
Sat May 12 18:19:00 2001 Corinna Vinschen <corinna@vinschen.de>
* dir.cc (rmdir): Rearrange slightly to allow removing directories

View File

@ -783,7 +783,7 @@ fhandler_tty_common::dup (fhandler_base *child)
fts->tcinit (get_ttyp ());
attach_tty (ttynum);
tc->set_ctty (ttynum, openflags & ~O_NOCTTY);
tc->set_ctty (ttynum, openflags);
HANDLE nh;