]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
dskqxs: ignore all EV_DISABLE failures
authorEric Wong <e@80x24.org>
Tue, 29 Apr 2025 17:16:49 +0000 (17:16 +0000)
committerEric Wong <e@80x24.org>
Thu, 1 May 2025 21:29:44 +0000 (21:29 +0000)
It's impossible to check for the same errors on non-registered
FDs with the poll(2) and select(2) backends while our epoll
backend has historically ignored failed EPOLL_CTL_DEL ops.  So
just ignore it for now since synchronous use of XhcMset in lei
can trigger the unnecessary EV_DISABLE.

lib/PublicInbox/DSKQXS.pm

index dc6621e469d77577b99fb4547611341299d40b9a..069472fc33a6315a68d5ad98a359e804d2a09724 100644 (file)
@@ -113,7 +113,7 @@ sub ep_del {
        my ($self, $io, $ev) = @_;
        my $kq = $_[0]->{kq} // return; # called in cleanup
        my $fd = fileno($io);
-       $kq->EV_SET($fd, EVFILT_READ, EV_DISABLE);
+       eval { $kq->EV_SET($fd, EVFILT_READ, EV_DISABLE) };
        eval { $kq->EV_SET($fd, EVFILT_WRITE, EV_DISABLE) };
        0;
 }