From: Eric Wong Date: Tue, 29 Apr 2025 17:16:51 +0000 (+0000) Subject: dskqxs: use OnDestroy explicitly for $fork_gen X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb1aa47b15fbfbaa296c655d284d81ab0b80d17;p=thirdparty%2Fpublic-inbox.git dskqxs: use OnDestroy explicitly for $fork_gen We need to ensure OnDestroy is always loaded before using it. While DSKQXS itslf is only loaded by DS (which loads OnDestroy), the t/ds-kqxs.t test doesn't load DS (unless using `make check-run'). --- diff --git a/lib/PublicInbox/DSKQXS.pm b/lib/PublicInbox/DSKQXS.pm index 77963ba65..eb59e9037 100644 --- a/lib/PublicInbox/DSKQXS.pm +++ b/lib/PublicInbox/DSKQXS.pm @@ -15,6 +15,7 @@ use IO::KQueue; use Errno qw(EAGAIN); use PublicInbox::Syscall qw(EPOLLONESHOT EPOLLIN EPOLLOUT EPOLLET %SIGNUM); use POSIX (); +use PublicInbox::OnDestroy (); sub EV_DISPATCH () { 0x0080 }