]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
Revert "kqnotify: drop EV_CLEAR (edge triggering)"
authorEric Wong <e@80x24.org>
Wed, 18 Oct 2023 20:56:08 +0000 (20:56 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Oct 2023 20:56:08 +0000 (20:56 +0000)
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 <stepnem@smrk.net>
Link: https://public-inbox.org/meta/20231018170111+0200.599564-stepnem@smrk.net/
lib/PublicInbox/KQNotify.pm

index 1689f4cc4a2641c94c341b6756e1c11a6f31535d..2efa887d45800aaa67574c3336fadbde06ba11f0 100644 (file)
@@ -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;