Age | Commit message (Collapse) | Author |
|
This fixes 2c94cdb453bc641246cc8b9a876da9799bee1ce7 on the Hurd, as
FD_SETSIZE is only 256, and so anyone using XFD_SETSIZE to iterate over
the contents of an fd_set will overrun the array.
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
Commit 2c94cdb raised the number of file descriptors from 256 to 512
but only for non-WIN32 platforms.
The definition of XFD_SETSIZE being duplicated, we need to do the same
for WIN32 builds as well otherwise a newer X server trying to
use more than 256 clients would fail on that platform.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
|
To allow up to 512 clients, the number of file descriptors being
monitored need to be increased accordingly.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
MinGW-w64 w32api-headers 3.0.0 define WIN32 in some places they didn't before,
which causes this check to turn on for Cygwin, which is not wanted.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
|
|
Seriously C89 already you guys.
|
|
|
|
|
|
Turn Xpoll.h into a generated file. In the modular tree, substitute in
whichever of fds_bits or __fds_bits is being used for the member of
fd_set on the system; in the monolithic tree, substitute in fds_bits
unconditionally, as that's the way it was before thanks to
_XOPEN_SOURCE being defined.
|