Re: poll() behaves differently in Linux 2.4.1 vs. Linux 2.2.14 (POLLHUP)

David S. Miller (davem@redhat.com)
Tue, 13 Mar 2001 18:06:47 -0800 (PST)


Jeffrey Butler writes:
> I've noticed that poll() calls on IPv4 sockets do
> not behave the same under linux 2.4 vs. linux 2.2.14.
> Linux 2.4 will return POLLHUP for a socket that is not
> connected (and has never been connected) while Linux
> 2.2 will not.
> The following example program demonstrates the
> problem when it's run under linux 2.4:

True, this behavior was changed from 2.2.x. We now match the behavior
of other svr4 systems, in particular Solaris. This new behavior in
2.4.x will not change.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/