* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a
filehandle.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user