bug in 1.3.3 2000/NT (probably socket())
Christopher Faylor
cgf@redhat.com
Fri Oct 19 14:25:00 GMT 2001
On Fri, Oct 19, 2001 at 03:45:49PM -0400, Eric Mandel wrote:
>On Oct 18, Christopher Faylor <cgf at redhat dot com> wrote:
>>>The program works correctly under Cygwin 1.3.2 (NT and 2000) but not
>>>under Cygwin 1.3.3 (NT or 2000). (It also works under Solaris 5.8).
>>>Under 1.3.3, select() returns an error each time it is called:
>>>
>>> select(): bad file number
>>
>> Try a snapshot.
>
>As requested, we tried running the test server program (as well as our
>real software suite from which the test is culled) on both the 10/16
>and 10/18 snapshots, but without success.
>
>I append our original e-mail containing a description of the problem
>and the test program.
> /* init select parameters */
> width = getdtablesize();
^^^^^^^^^^^^^^^
This is your problem.
This should be FD_SETSIZE.
You can't assume that getdtablesize() == FD_SETSIZE.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list