* fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
non-inheritable.
This commit is contained in:
parent
49e6e30f7a
commit
c80de4f912
winsup/cygwin
|
@ -1,3 +1,8 @@
|
||||||
|
2011-06-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
|
||||||
|
non-inheritable.
|
||||||
|
|
||||||
2011-06-22 Corinna Vinschen <corinna@vinschen.de>
|
2011-06-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
|
* fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
|
||||||
|
|
|
@ -1586,7 +1586,7 @@ fhandler_pty_master::setup ()
|
||||||
/* Create communication pipes */
|
/* Create communication pipes */
|
||||||
char pipename[sizeof("ptyNNNN-from-master")];
|
char pipename[sizeof("ptyNNNN-from-master")];
|
||||||
__small_sprintf (pipename, "pty%d-from-master", get_unit ());
|
__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,
|
get_output_handle (), 128 * 1024,
|
||||||
pipename);
|
pipename);
|
||||||
if (res)
|
if (res)
|
||||||
|
@ -1600,7 +1600,7 @@ fhandler_pty_master::setup ()
|
||||||
get_output_handle ());
|
get_output_handle ());
|
||||||
|
|
||||||
__small_sprintf (pipename, "pty%d-to-master", get_unit ());
|
__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);
|
to_master, 128 * 1024, pipename);
|
||||||
if (res)
|
if (res)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue