* 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

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