Re: poll(2) semantics changed in 2.4.0-? vs. 2.2.16?

From: Martin Diehl (
Date: Sun Oct 08 2000 - 16:37:23 EST

On Fri, 6 Oct 2000, Andi Kleen wrote:

[icmp errors on unconnected udp sockets not passed to application layer]
> Alexey Kuznetsov ( changed it. Ask him why he did it,
> I agree with you that it would make more sense to keep the old behaviour
> (even though it is differing from most other BSD sockets implementations)
> To answer your question: you'll only get the error reported now when the
> UDP socket is either connect(2)ed or when you enabled asynchronous
> error reporting using IP_RECVERR.

Thanks, both works fine. To understand the reason for this change I've
browsed the discussion on l-k when it was introduced in 2.3.4x.
My impression is, there are two approaches (RFC1122 vs. BSD) which are
mutually exclusive and could be attributed as broken from the respective
point of view.
I'm just going to formulate an idea I have not to solve but to work around
this ambiguity and retain maximum compatibility and honor both sides of
the story :)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:10 EST