]> Sergey Matveev's repositories - public-inbox.git/commit
{dir,inbox}idle: use level-triggered epoll
authorEric Wong <e@80x24.org>
Mon, 4 Oct 2021 08:26:33 +0000 (08:26 +0000)
committerEric Wong <e@80x24.org>
Mon, 4 Oct 2021 09:51:30 +0000 (09:51 +0000)
commit0f8cfbace2ab68aabfdfb6e9a06023043e943a67
treea625e252b3ff78560aaf1998934c7f8c716b6f12
parent6248a7ab1046d0ccdc0b244099fb241fd52d653e
{dir,inbox}idle: use level-triggered epoll

Both read(2) on inotify and kevent(2) return a finite amount of
events.  Let the kernel notify us again in cases where we'd
need to retry instead of looping ourselves.  This can prevent
missed/delayed notifications while still ensuring fairness in
busy event loops.
lib/PublicInbox/DirIdle.pm
lib/PublicInbox/InboxIdle.pm