summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_dsp.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-02-07 18:59:40 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-02-07 18:59:40 +0000
commit4248960e2f39e9913dc71da085883ee76a30b1e9 (patch)
tree893cdbe10af13e4d56101e1206de81a7e8c6a021 /winsup/cygwin/fhandler_dsp.cc
parent62688407cbb3e8db6cf683046989deac42e3058e (diff)
downloadcygnal-4248960e2f39e9913dc71da085883ee76a30b1e9.tar.gz
cygnal-4248960e2f39e9913dc71da085883ee76a30b1e9.tar.bz2
cygnal-4248960e2f39e9913dc71da085883ee76a30b1e9.zip
* dtable.cc (dtable::init_std_file_from_handle): Set access to
read/write of handle is connected to a tty or console. * fhandler_dsp.cc (fhandler_dev_dsp::dup): Set open flags correctly after duplicating from archetype. * fhandler_tty.cc (fhandler_tty_slave::dup): Ditto. (fhandler_pty_master::dup): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_dsp.cc')
-rw-r--r--winsup/cygwin/fhandler_dsp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_dsp.cc b/winsup/cygwin/fhandler_dsp.cc
index 8ef89bf6b..249fa7791 100644
--- a/winsup/cygwin/fhandler_dsp.cc
+++ b/winsup/cygwin/fhandler_dsp.cc
@@ -1131,6 +1131,7 @@ fhandler_dev_dsp::dup (fhandler_base * child)
{
debug_printf ("");
child->archetype = archetype;
+ child->set_flags (get_flags ());
archetype->usecount++;
return 0;
}