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:
authorCorinna Vinschen <corinna@vinschen.de>2011-06-22 11:58:01 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-06-22 11:58:01 +0400
commitc80de4f9127c282c3f0d62af44b5ca4607f99ab9 (patch)
treefb65e0f56183611a8c088b7f476c8b4a7c5739dc /winsup/cygwin/fhandler_tty.cc
parent49e6e30f7a4bebb0451c57565550a66ab92f3082 (diff)
* fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
non-inheritable.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index a03fddbdc..70b7993b6 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -1586,7 +1586,7 @@ fhandler_pty_master::setup ()
/* Create communication pipes */
char pipename[sizeof("ptyNNNN-from-master")];
__small_sprintf (pipename, "pty%d-from-master", get_unit ());
- res = fhandler_pipe::create_selectable (&sec_none, from_master,
+ res = fhandler_pipe::create_selectable (&sec_none_nih, from_master,
get_output_handle (), 128 * 1024,
pipename);
if (res)
@@ -1600,7 +1600,7 @@ fhandler_pty_master::setup ()
get_output_handle ());
__small_sprintf (pipename, "pty%d-to-master", get_unit ());
- res = fhandler_pipe::create_selectable (&sec_none, get_io_handle (),
+ res = fhandler_pipe::create_selectable (&sec_none_nih, get_io_handle (),
to_master, 128 * 1024, pipename);
if (res)
{