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 | |
parent | cbedbdd029e46132dac6eef615fedee53bd16824 (diff) |
* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a
filehandle.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 450de5cc6..8258c38f5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 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; |