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

From: Davide Libenzi (davidel@xmailserver.org)
Date: Sat Nov 02 2002 - 17:11:44 EST


On Sat, 2 Nov 2002, bert hubert wrote:

> 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?

Yep, I forgot to edit that one ...

> 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.

Sigh, I liked Jamie explanation :)
Ok, there's still some work to do on man pages ...

- Davide

-
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:27 EST