delorie.com/archives/browse.cgi | search |
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: | <002301c14272$bfb3c860$d50b19ac@LSIL.COM> |
From: | "Phil Dempster" <dempster AT lsil DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: Cygwin 1.3.3: Win2K: select() returning EBADF (causes thrashing in Boa) |
Date: | Fri, 21 Sep 2001 08:55:06 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
> The obvious question is why is boa sending a bad fd to select? My apologies; I omitted to mention that the behaviour differs from the same code compiled under Linux, where select() correctly blocks. As far as I can determine, there is nothing wrong with the file descriptor. Both block_read_fdset and block_write_fdset are zeroed at initialisation (using the FD_ZERO macro). The server's listening socket is set (using FD_SET) in block_read_fdset. select() does not block and returns immediately with errno==EBADF. > What thoughts were you expecting? You obviously need to debug the code. I was wondering if there any known issues with the Cygwin implementation of select(), given that the underlying Microsoft Winsock function does not map entirely cleanly to the Berkley implementation. Your response indicates that there are no known issues ;-) Cheers, Phil. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |