public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Phil Dempster" <dempster@lsil.com>
To: <cygwin@cygwin.com>
Subject: Re: Cygwin 1.3.3: Win2K: select() returning EBADF (causes thrashing in Boa)
Date: Fri, 21 Sep 2001 00:55:00 -0000	[thread overview]
Message-ID: <002301c14272$bfb3c860$d50b19ac@LSIL.COM> (raw)

> 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/

             reply	other threads:[~2001-09-21  0:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-21  0:55 Phil Dempster [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-21 15:38 Phil Dempster
2001-09-21 13:46 Heribert Dahms
2001-09-20  8:05 Phil Dempster
2001-09-20  8:32 ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002301c14272$bfb3c860$d50b19ac@LSIL.COM' \
    --to=dempster@lsil.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).