Re: [patch] total-epoll r2 ...

From: bert hubert (ahu@ds9a.nl)
Date: Sat Nov 02 2002 - 16:37:59 EST


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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:26 EST