[PATCH 1/3] Cygwin: pty: Fix bad file descriptor error in some environment.

Takashi Yano takashi.yano@nifty.ne.jp
Sun Sep 15 04:06:00 GMT 2019


- The bad file descriptor problem reported in:
  https://cygwin.com/ml/cygwin-patches/2019-q3/msg00104.html
  was recurring. Fixed again.
---
 winsup/cygwin/fhandler_tty.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 9aa832641..1b1d54447 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -857,8 +857,6 @@ fhandler_pty_slave::open (int flags, mode_t)
       pcon_attached_to = get_minor ();
       init_console_handler (true);
     }
-  else if (pcon_attached_to < 0)
-    fhandler_console::need_invisible ();
 
   set_open_status ();
   return 1;
-- 
2.21.0



More information about the Cygwin-patches mailing list