Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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/