diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-13 22:05:52 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-13 22:05:52 +0400 |
commit | 49a8c92ca3bf9643bcbd030c93ac699a58a56a5e (patch) | |
tree | 4b9b299e21617aad8a142e2f1a9dbfebd233c6f1 /winsup/cygwin/fhandler_tty.cc | |
parent | cbedbdd029e46132dac6eef615fedee53bd16824 (diff) |
* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a
filehandle.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index ce499c89c..293f4e636 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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; |