CVS now contains a tentative fix, you can get it via:
cvs -z3 -d :pserver:anonym...@cvs.schmorp.de/schmorpforge co libev
On Fri, Apr 25, 2014 at 03:34:09PM +0300, Assaf Inbal
wrote:
> Just one more question, if the issue is because the mask isn't cleared
> for the FD, why does it work withou
> I'll take care of it, but indeed, that's the code that generates the
> event. It does rely on the undocumented behaviour of EPOLL returning
> eperm on regular files (but whats not undocumented in epoll...), but the
> problem is caused by your watchers using the same fd, and while libev
> removes
>
> In any case, I understand the problem, and the only question is how to fix
> it
> best. I'll notify you when I have a fix.
>
Thanks! I appreciate it.
___
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/lib
On Fri, Apr 25, 2014 at 10:16:38AM +0300, Assaf Inbal
wrote:
> You're right, using select or poll works as expected and only epoll is
> affected.
I've analyzed it, and indeed, this is a bug in the epoll backend generating
fake events. I'll fix it for the next release!
> The attached program
Hey Marc,
Thanks for the pointers.
Does it only fail with the epoll backend? (try running with LIBEV_FLAGS=2
> in your environment to test) - it could be a bug in the code that
> generates fake events for files.
>
You're right, using select or poll works as expected and only epoll is
affected.