mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Lluís Batlle" <viriketo@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: bug in select() in linux
Date: Mon, 12 Mar 2007 15:51:19 +0100	[thread overview]
Message-ID: <45219fb00703120751t7acd1ae3kb77f556b81a87634@mail.gmail.com> (raw)

Hello,

I've found a problem in the select() call. The manpage states:
"those in writefds will be watched to see if a write will not block"

I've tried a select() for write against a closed tcp socket (closed by
the other side), and the select call _blocks_.

Any write() call to that socket will _not block_, and will return with EPIPE.

I've seen this happening in 2.4.20 and 2.6.16.29 (xen patched) at least.

Maybe it's a glibc problem - you may know better.

Could you please keep me in carbon copy? I'm not sure I want to
subscribe to LKML.

Regards,
Lluís.

             reply	other threads:[~2007-03-12 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 14:51 Lluís Batlle [this message]
     [not found] ` <20070312160104.25d6b321@lxorguk.ukuu.org.uk>
2007-03-12 15:02   ` Lluís Batlle
2007-03-12 15:08     ` Alistair John Strachan
2007-03-12 15:15       ` Lluís Batlle
2007-03-12 17:03     ` Alan Cox

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=45219fb00703120751t7acd1ae3kb77f556b81a87634@mail.gmail.com \
    --to=viriketo@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®