From d6220472f33587c7788ba24a9410f669ddb83885 Mon Sep 17 00:00:00 2001 From: cgf Date: Sun, 8 Sep 2002 19:35:41 +0000 Subject: [PATCH] * fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/output handles since they are not properly manipulated later. * tty.cc (tty::make_pipes): Ditto. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_tty.cc | 2 -- winsup/cygwin/tty.cc | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8558d4d7bc..ad6555f2fc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2002-09-08 Christopher Faylor + + * fhandler_tty.cc (fhandler_tty_slave::open): Don't protect + input/output handles since they are not properly manipulated later. + * tty.cc (tty::make_pipes): Ditto. + 2002-09-06 Christopher Faylor * winsup.h (_WIN32_WINNT): Protect. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 8d368da489..f062b833be 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -532,9 +532,7 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t) get_ttyp ()->to_master, to_master_local); set_io_handle (from_master_local); - ProtectHandle1INH (from_master_local, from_pty); set_output_handle (to_master_local); - ProtectHandle1INH (to_master_local, to_pty); set_open_status (); termios_printf ("tty%d opened", ttynum); diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 360fa2ef5d..b564d66209 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -367,14 +367,14 @@ tty::make_pipes (fhandler_pty_master *ptym) return FALSE; } - ProtectHandle1INH (to_slave, to_pty); + // ProtectHandle1INH (to_slave, to_pty); if (CreatePipe (&from_slave, &to_master, &sec_all, 0) == FALSE) { termios_printf ("can't create output pipe"); set_errno (ENOENT); return FALSE; } - ProtectHandle1INH (from_slave, from_pty); + // ProtectHandle1INH (from_slave, from_pty); termios_printf ("tty%d from_slave %p, to_slave %p", ntty, from_slave, to_slave); -- 2.11.0