]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
dskqxs: use OnDestroy explicitly for $fork_gen
authorEric Wong <e@80x24.org>
Tue, 29 Apr 2025 17:16:51 +0000 (17:16 +0000)
committerEric Wong <e@80x24.org>
Thu, 1 May 2025 21:29:45 +0000 (21:29 +0000)
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').

lib/PublicInbox/DSKQXS.pm

index 77963ba65140bb0e74747133d726630fa0265b30..eb59e903799d0ba006e3a8770f55d94abb159b48 100644 (file)
@@ -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 }