[PATCH] Define FD_SETSIZE on Cygwin regardless of XWin DDX

Jon TURNEY jon.turney at dronecode.org.uk
Mon Oct 19 12:47:19 PDT 2009

On 19/10/2009 17:14, Yaakov (Cygwin/X) wrote:
> All DDXs segfault on Cygwin unless FD_SETSIZE is enlarged to 256
> (default is 64), so make sure we do so whether or not we are building
> XWin.

This could have a better comment, perhaps:

"FD_SETSIZE must be at least XFD_SETSIZE for uses of select() to be correct.
The Cygwin default is only 64, so it must be increased to 256"

It looks like this could potentially affect anything which includes Xpoll.h, 
so we need to audit uses of Select() outside the server for the same problem.

More information about the xorg-devel mailing list