unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dskqxs: get rid of needless confess check
@ 2023-09-05  7:37 Eric Wong
  2023-09-05  7:39 ` there's no 2/2, yet :x Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2023-09-05  7:37 UTC (permalink / raw)
  To: meta

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.
---
 lib/PublicInbox/DSKQXS.pm | 3 +--
 1 file changed, 1 insertion(+), 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-08  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05  7:37 [PATCH 1/2] dskqxs: get rid of needless confess check Eric Wong
2023-09-05  7:39 ` there's no 2/2, yet :x Eric Wong
2023-09-08  0:49   ` [PATCH 2/2] fake_inotify + kqnotify: rewrite and combine code Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).