[systemd-devel] [PATCH] sd-event: we do not support EPOLLONESHOT correctly

2013-12-13 Thread Shawn Landden
If this event is not the highest priority, then it will not be dispatched when the epoll triggers, and since we will not get any more wakeups (due to the way EPOLLONESHOT works) will never be dispatched. Since we only handle one event per epoll_wait() wakeup, and we dequeue a ONE_SHOT event when

Re: [systemd-devel] [PATCH] sd-event: we do not support EPOLLONESHOT correctly

2013-12-13 Thread Lennart Poettering
On Fri, 13.12.13 13:08, Shawn Landden (sh...@churchofgit.com) wrote: If this event is not the highest priority, then it will not be dispatched when the epoll triggers, and since we will not get any more wakeups (due to the way EPOLLONESHOT works) will never be dispatched. Hmm, so the way this

Re: [systemd-devel] [PATCH] sd-event: we do not support EPOLLONESHOT correctly

2013-12-13 Thread Shawn Landden
On Fri, Dec 13, 2013 at 7:17 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 13.12.13 13:08, Shawn Landden (sh...@churchofgit.com) wrote: If this event is not the highest priority, then it will not be dispatched when the epoll triggers, and since we will not get any more wakeups

Re: [systemd-devel] [PATCH] sd-event: we do not support EPOLLONESHOT correctly

2013-12-13 Thread Shawn Landden
On Fri, Dec 13, 2013 at 8:04 PM, Shawn Landden sh...@churchofgit.com wrote: On Fri, Dec 13, 2013 at 7:17 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 13.12.13 13:08, Shawn Landden (sh...@churchofgit.com) wrote: If this event is not the highest priority, then it will not be