From cbb4498df289f9874fc9475b86310958826360e8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 18 Oct 2023 20:56:08 +0000 Subject: [PATCH] Revert "kqnotify: drop EV_CLEAR (edge triggering)" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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/ --- lib/PublicInbox/KQNotify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2