Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-13 22:05:52 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-13 22:05:52 +0400
commit49a8c92ca3bf9643bcbd030c93ac699a58a56a5e (patch)
tree4b9b299e21617aad8a142e2f1a9dbfebd233c6f1 /winsup/cygwin/fhandler_tty.cc
parentcbedbdd029e46132dac6eef615fedee53bd16824 (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.cc2
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;