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: Keith Seitz <keiths at cygnus dot com>, cgf at redhat dot com
- Subject: Re: bug in 1.3.3 2000/NT (probably socket())
- From: Eric Mandel <eric at head-cfa dot harvard dot edu>
- Date: Mon, 22 Oct 2001 11:24:00 -0400
- cc: eric at head-cfa dot harvard dot edu, joye at head-cfa dot harvard dot edu, cygwin at sources dot redhat dot com
On Fri, 19 Oct 2001 17:26:41, Christopher Faylor wrote:
> > width = getdtablesize();
> ^^^^^^^^^^^^^^^
> This is your problem.
>
> This should be FD_SETSIZE.
>
> You can't assume that getdtablesize() == FD_SETSIZE.
Thanks, I was using the Stone-Age Unix limit for select(), i.e., the
number of descriptors per process (p. 154 of Stevens' Unix Network
Programming). Old dogs, new tricks, I suppose.
Regards,
Eric
--
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/