Re: [PATCH]: Set SOCK_DONE when TCP socket receives FIN

David S. Miller (
Sun, 13 Jul 2003 19:56:06 -0700

On Mon, 14 Jul 2003 03:41:00 +0100
Jamie Lokier <> wrote:

> The SOCK_DONE flag is always clear and never set in 2.5.75. Yet there
> is code which tests it, and if it's clear, will return -ENOTCONN.
> Admittedly I am confused as to how this is not noticed :)
> This small patch sets it where it looks like it was intended.
> Please check.

Indeed, good catch. This bug got introduced when we changed
all of those volatile char things into a flags bitmask
(ChangeSet 1.889.291.25)

Patch applied, thanks.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at