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.
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;
}