From 69318a0bc73af2b16399b4110fdac1f20754053a Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Fri, 25 Apr 2014 13:05:39 +0000 Subject: [PATCH] *** empty log message *** --- Changes | 2 ++ ev_epoll.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ed3f2b0..20e7bd6 100644 --- a/Changes +++ b/Changes @@ -15,6 +15,8 @@ TODO: document portbaility requirements for atomic pointer access TODO: possible cb aliasing? TODO: document requirements for function piinters and calling conventions. + - events on files were not always generated properly with the + epoll backend (testcase by Assaf Inbal). - mark event pipe fd as cloexec after a fork (analyzed by Sami Farin). - (ecb) support m68k, m88k and sh (patch by Miod Vallat). - use a reasonable fallback for EV_NSIG instead of erroring out diff --git a/ev_epoll.c b/ev_epoll.c index f5ad618..7472b60 100644 --- a/ev_epoll.c +++ b/ev_epoll.c @@ -228,7 +228,10 @@ epoll_poll (EV_P_ ev_tstamp timeout) if (anfds [fd].emask & EV_EMASK_EPERM && events) fd_event (EV_A_ fd, events); else - epoll_eperms [i] = epoll_eperms [--epoll_epermcnt]; + { + epoll_eperms [i] = epoll_eperms [--epoll_epermcnt]; + anfds [fd].emask = 0; + } } } -- 2.39.2