Re: [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK

From: Chris Evans (chris@scary.beasts.org)
Date: Fri Sep 15 2000 - 08:22:47 EST


On Fri, 15 Sep 2000, Matthias Andree wrote:

> BUG DESCRIPTION:
> (This is for IPv4, someone would have to check IPv6 as well).
> The socket flag O_NONBLOCK is _NOT_ properly inherited through an
> accept(2) call, in spite of what socket(7) documents. This is a bug.
> accept(2) must copy the file descriptor's flag of the socket.

No-one has yet located a standards document which mandates this behaviour,
AFAIK.

Unless such a document is found, the bug lies in dnscache for assuming
something it is not entitled to assume.

Cheers
Chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:25 EST