]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
kqnotify: drop EV_CLEAR (edge triggering)
authorEric Wong <e@80x24.org>
Fri, 6 Oct 2023 09:46:00 +0000 (09:46 +0000)
committerEric Wong <e@80x24.org>
Fri, 6 Oct 2023 21:06:51 +0000 (21:06 +0000)
commit13a2088c74fdb4fa51cd97cefc00862cc2082330
treedaaa4fe627a58b1577a157f39c52462e052b2ae6
parent00fe4ec336dcd8fcf3c45498d7f1ae5c228c6b92
kqnotify: drop EV_CLEAR (edge triggering)

I'm not entirely certain how it works with the way we use
kevent.  I do know IO::KQueue has hard-coded kevent retrievals
to 1000 events so it's conceivable we'd end up missing wakeups
as we don't loop or requeue in callers.  So just rely on the
*BSD kernel to provided requeue behavior for us by using
level-triggering.

In any case, this seems to workaround t/dir_idle.t failures
on Dragonfly due to a tmpfs bug in all versions up to v6.4.
lib/PublicInbox/KQNotify.pm