lkml.org 
[lkml]   [2003]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: POLLRDONCE optimisation for epoll users (was: epoll and half closed TCP connections)
Davide Libenzi wrote:
> And the name READONCE seems to imply that you can't read(2) twice.

Like all POLL* flags, you can always do more than it implies and get EAGAIN :)

I don't care about the name, feel free to pick another.

> I'd rather prefer the RDHUP flag that tells me : There's an hungup
> condition for sure, and you might also find some data since POLLIN is set.

Yeah, but it doesn't stop the do-while loop from being broken :)

-- Jamie
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:6.236 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site