This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: lesstif mwm bug
- From: "Harold Hunt" <huntharo at msu dot edu>
- To: <cygwin-xfree at cygwin dot com>
- Cc: <strube at physik3 dot gwdg dot de>
- Date: Wed, 8 May 2002 01:48:55 -0400
- Subject: RE: lesstif mwm bug
Chris,
> >Now I found the reason of the bug. Whereas fd_width is 256,
> FD_SETSIZE (the
> >number of bits in fd_set variables) is only 64, so that select()
> tests for
> >unpredictable file descriptors from 64 to 255. For mwm, as x_fd has low
> >values, it will be sufficient to limit fd_width in mwm.c:
> >if(fd_width > FD_SETSIZE) fd_width = FD_SETSIZE;
> >More generally, the value of FD_SETSIZE in
> /usr/include/sys/types.h should
> >be increased (as the comments say, to >= NOFILE from param.h)!
>
> You can set this up yourself if it is important to you. Just define
> FD_SETSIZE before including sys/types.h.
>
> cgf
I tried that. It did not fix the problem. :(
I am now trying Hans Werner Strube's idea. You'll know if his patch works
if a new lesstif package gets released in the next 20 minutes.
Harold