Re: [PATCH/RFC] POLLHUP tinkering ...

From: David S. Miller
Date: Sun Jan 08 2006 - 19:21:42 EST


From: Davide Libenzi <davidel@xxxxxxxxxxxxxxx>
Date: Sun, 8 Jan 2006 16:11:10 -0800 (PST)

> On Sun, 8 Jan 2006, David S. Miller wrote:
>
> > The extra last read is always necessary, it's an error synchronization
> > barrier. Did you know that?
> >
> > If a partial read or write hits an error, the successful amount of
> > bytes read or written before the error occurred is returned. Then any
> > subsequent read or write will report the error immediately.
>
> Sorry for the missing info, but I was clearly talking about O_NONBLOCK
> here.

What I said still applies to O_NONBLOCK.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/