This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: bug in 1.3.3 2000/NT (probably socket())
- To: cygwin at cygwin dot com
- Subject: Re: bug in 1.3.3 2000/NT (probably socket())
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Fri, 19 Oct 2001 17:26:41 -0400
- References: <200110191945.f9JJjn506860@head-cfa.harvard.edu>
- Reply-To: cygwin at cygwin dot com
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/