From: Eric Wong Date: Wed, 18 Oct 2023 20:56:08 +0000 (+0000) Subject: Revert "kqnotify: drop EV_CLEAR (edge triggering)" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbb4498df289f9874fc9475b86310958826360e8;p=thirdparty%2Fpublic-inbox.git Revert "kqnotify: drop EV_CLEAR (edge triggering)" This reverts commit 13a2088c74fdb4fa51cd97cefc00862cc2082330. It's causing errors on an OpenBSD development snapshot while despite being fine on OpenBSD 7.3 (amd64) and other *BSDs I've tested. Reported-by: Štěpán Němec Link: https://public-inbox.org/meta/20231018170111+0200.599564-stepnem@smrk.net/ --- diff --git a/lib/PublicInbox/KQNotify.pm b/lib/PublicInbox/KQNotify.pm index 1689f4cc4..2efa887d4 100644 --- a/lib/PublicInbox/KQNotify.pm +++ b/lib/PublicInbox/KQNotify.pm @@ -26,7 +26,7 @@ sub watch { my $ident = fileno($w->[2]) // die "BUG: bad fileno $w->[2]: $!"; $self->{dskq}->{kq}->EV_SET($ident, # ident (fd) EVFILT_VNODE, # filter - EV_ADD, # flags + EV_ADD | EV_CLEAR, # flags $mask, # fflags 0, $dir_delete); # data, udata $self->{watch}->{$ident} = $w;