diff options
author | Eric Wong <e@80x24.org> | 2023-09-05 07:37:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-09-06 01:00:04 +0000 |
commit | 49898510175f0e9ea62bea83fb333c85b8278362 (patch) | |
tree | e0712a564b1989c1ccbaabae12363239b1cf15e5 /lib/PublicInbox/DSKQXS.pm | |
parent | 2983af77a96a1bf2bcf1cc5409957ab4ef4138aa (diff) | |
download | public-inbox-49898510175f0e9ea62bea83fb333c85b8278362.tar.gz |
Destruction order is unpredictable at process teardown, so confessing or warning here is unnecessary, just break out of the sub since it's for to delete an entry, anyways.
Diffstat (limited to 'lib/PublicInbox/DSKQXS.pm')
-rw-r--r-- | lib/PublicInbox/DSKQXS.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/DSKQXS.pm b/lib/PublicInbox/DSKQXS.pm index 7bd7773e..3fcb4e40 100644 --- a/lib/PublicInbox/DSKQXS.pm +++ b/lib/PublicInbox/DSKQXS.pm @@ -106,8 +106,7 @@ sub epoll_ctl { $kq->EV_SET($fd, EVFILT_READ, kq_flag(EPOLLIN, $ev)); eval { $kq->EV_SET($fd, EVFILT_WRITE, kq_flag(EPOLLOUT, $ev)) }; } elsif ($op == EPOLL_CTL_DEL) { - use Carp (); - $kq // Carp::confess("nokq $fd"); + $kq // return; # called in cleanup $kq->EV_SET($fd, EVFILT_READ, EV_DISABLE); eval { $kq->EV_SET($fd, EVFILT_WRITE, EV_DISABLE) }; } else { # EPOLL_CTL_ADD |