delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/22/11:24:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200110221524.f9MFO0327373@head-cfa.harvard.edu>
To: Keith Seitz <keiths AT cygnus DOT com>, cgf AT redhat DOT com
cc: eric AT head-cfa DOT harvard DOT edu, joye AT head-cfa DOT harvard DOT edu,
cygwin AT sources DOT redhat DOT com
Subject: Re: bug in 1.3.3 2000/NT (probably socket())
In-Reply-To: Your message of "Fri, 19 Oct 2001 14:46:30 PDT."
<Pine DOT GSO DOT 4 DOT 33 DOT 0110191430030 DOT 18666-100000 AT makita DOT cygnus DOT com>
Date: Mon, 22 Oct 2001 11:24:00 -0400
From: Eric Mandel <eric AT head-cfa DOT harvard DOT edu>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019