Cygwin: pty: Fix select() with pseudo console support.

- select() did not work correctly when both read and except are
  polled simultaneously for the same fd and the r/w pipe is switched
  to pseudo console side. This patch fixes this isseu.
This commit is contained in:
Takashi Yano
2019-09-05 13:22:54 +09:00
committed by Corinna Vinschen
parent 433c6b8e0a
commit 915fcd0ae8
4 changed files with 207 additions and 15 deletions

View File

@@ -88,6 +88,7 @@ public:
select_record start;
select_pipe_info *device_specific_pipe;
select_pipe_info *device_specific_ptys;
select_fifo_info *device_specific_fifo;
select_socket_info *device_specific_socket;
select_serial_info *device_specific_serial;
@@ -101,6 +102,7 @@ public:
select_stuff (): return_on_signal (false), always_ready (false),
windows_used (false), start (),
device_specific_pipe (NULL),
device_specific_ptys (NULL),
device_specific_fifo (NULL),
device_specific_socket (NULL),
device_specific_serial (NULL)