about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-18 20:56:08 +0000
committerEric Wong <e@80x24.org>2023-10-18 20:56:08 +0000
commitcbb4498df289f9874fc9475b86310958826360e8 (patch)
tree5d72ff7a5263fca9a710020c26405fccf019a535
parent1eb70761e37bcfcd5e4b1db73b955f30d3594a13 (diff)
downloadpublic-inbox-cbb4498df289f9874fc9475b86310958826360e8.tar.gz
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/
-rw-r--r--lib/PublicInbox/KQNotify.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/KQNotify.pm b/lib/PublicInbox/KQNotify.pm
index 1689f4cc..2efa887d 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;