This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]