* fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.

This commit is contained in:
Corinna Vinschen 2008-06-19 19:50:47 +00:00
parent 4f1ed68c5c
commit 83e80c9178
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-06-19 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.
2008-06-18 Christopher Faylor <me+cygwin@cgf.cx>
* strsig.cc (strsignal): Return non-const buffer to allow building with

View File

@ -1362,7 +1362,7 @@ fhandler_pty_master::setup (bool ispty)
char pipename[sizeof("ttyNNNN-from-master")];
__small_sprintf (pipename, "tty%d-from-master", get_unit ());
res = fhandler_pipe::create_selectable (&sec_all_nih, from_master,
res = fhandler_pipe::create_selectable (&sec_all, from_master,
get_output_handle (), 128 * 1024,
pipename);
if (res)
@ -1372,7 +1372,7 @@ fhandler_pty_master::setup (bool ispty)
}
__small_sprintf (pipename, "tty%d-to-master", get_unit ());
res = fhandler_pipe::create_selectable (&sec_all_nih, get_io_handle (),
res = fhandler_pipe::create_selectable (&sec_all, get_io_handle (),
to_master, 128 * 1024, pipename);
if (res)
{