[PATCH] Cygwin: select: Speed up select() call for pty, pipe and fifo.

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 13 16:33:00 GMT 2020

On Jan  6 23:38, Takashi Yano wrote:
> - The slowing down issue of X11 forwarding using ssh -Y, reported
>   in https://www.cygwin.com/ml/cygwin/2019-12/msg00295.html,
>   is due to the change of select() code for pty in the commit
>   915fcd0ae8d83546ce135131cd25bf6795d97966. cygthread::detach()
>   takes at most about 10msec because Sleep() is used in the thread.
>   For this issue, this patch uses cygwait() instead of Sleep() and
>   introduces an event to abort the wait. For not only pty, but pipe
>   and fifo also have the same problem potentially, so this patch
>   applies same strategy to them as well.

Pushed.  And thanks for testing, Marco!


Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20200113/f56e2ad3/attachment.sig>

More information about the Cygwin-patches mailing list