lkml.org 
[lkml]   [2002]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] total-epoll r2 ...
On Sat, Nov 02, 2002 at 11:40:55AM -0800, Davide Libenzi wrote:

> http://www.xmailserver.org/linux-patches/epoll.txt

This page still contains:

Furthermore, the function do_use_fd() immediately tries to read(2)
from the fd. If it does not do so, there is a race condition with the
risk of losing an event before interest in it was registered. This
read may well return EAGAIN, which should be a cause for calling
epoll_wait().

Am I correct in understanding that this is no longer true because epoll_ctl
inserts an event if the poll condition is met?

Furthermore, I don't think the epoll(2) page is that helpful as even an
application developer that follows lkml (ie, me) has any use of the
'waitqueue' analogy.

Regards,

bert

--
http://www.PowerDNS.com Versatile DNS Software & Services
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
-
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:30    [W:0.054 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site