| To: | matthias.andree@xxxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Fri, 15 Sep 2000 05:54:14 -0700 |
| Cc: | linux-kernel@xxxxxxxxxxxxxxx, dns@xxxxxxxxxxxxx, ak@xxxxxx, kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, alan@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <20000915150125.A8057@xxxxxxxxxxxxxxxxxxx> (message from Matthias Andree on Fri, 15 Sep 2000 15:01:25 +0200) |
| References: | <20000915150125.A8057@xxxxxxxxxxxxxxxxxxx> |
| Sender: | owner-netdev@xxxxxxxxxxx |
Date: Fri, 15 Sep 2000 15:01:25 +0200
From: Matthias Andree <matthias.andree@xxxxxxxxxxxxxxxxxxxx>
(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.
The socket(7) manpage is buggy, not the kernel.
This has been this way forever, it is thus an API and it is not
changing. Changing it would break existing programs. End of story.
Later,
David S. Miller
davem@xxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK, Matthias Andree |
|---|---|
| Next by Date: | Re: [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK, Andi Kleen |
| Previous by Thread: | [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK, Matthias Andree |
| Next by Thread: | Re: [2.4][2.2] Bug: accept discards socket options/O_NONBLOCK, Andi Kleen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |