about summary refs log tree commit homepage
path: root/lib/PublicInbox/DSKQXS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-05 07:37:25 +0000
committerEric Wong <e@80x24.org>2023-09-06 01:00:04 +0000
commit49898510175f0e9ea62bea83fb333c85b8278362 (patch)
treee0712a564b1989c1ccbaabae12363239b1cf15e5 /lib/PublicInbox/DSKQXS.pm
parent2983af77a96a1bf2bcf1cc5409957ab4ef4138aa (diff)
downloadpublic-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.pm3
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