mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* bug in select() in linux
@ 2007-03-12 14:51 Lluís Batlle
       [not found] ` <20070312160104.25d6b321@lxorguk.ukuu.org.uk>
  0 siblings, 1 reply; 5+ messages in thread
From: Lluís Batlle @ 2007-03-12 14:51 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-12 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 14:51 bug in select() in linux Lluís Batlle
     [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

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®