delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/19/17:26:57

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
Date: Fri, 19 Oct 2001 17:26:41 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bug in 1.3.3 2000/NT (probably socket())
Message-ID: <20011019172641.A15277@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <200110191945 DOT f9JJjn506860 AT head-cfa DOT harvard DOT edu>
Mime-Version: 1.0
In-Reply-To: <200110191945.f9JJjn506860@head-cfa.harvard.edu>
User-Agent: Mutt/1.3.21i

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/

- Raw text -


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