4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-02 13:05:42 +08:00

Cygwin: pty: Fix bad file descriptor error in some environment.

- The bad file descriptor problem reported in:
  https://cygwin.com/ml/cygwin-patches/2019-q3/msg00104.html
  was recurring. Fixed again.
This commit is contained in:
Takashi Yano 2019-09-15 13:05:51 +09:00 committed by Ken Brown
parent 52593b8619
commit 36c814d0fd

View File

@ -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;