From 1e44ee6d429b853a7a87ae58e56241c55ab8c306 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 27 Nov 2019 01:33:32 +0000 Subject: dskqxs: fix missing EV_DISPATCH define Oops, IO::KQueue support was broken due to this missing constant. Add a new ds-kqxs.t test case to ensure we test the IO::KQueue path if IO::KQueue is available. --- lib/PublicInbox/DSKQXS.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/PublicInbox/DSKQXS.pm b/lib/PublicInbox/DSKQXS.pm index 1c3b970b..84e146f8 100644 --- a/lib/PublicInbox/DSKQXS.pm +++ b/lib/PublicInbox/DSKQXS.pm @@ -21,6 +21,8 @@ use PublicInbox::Syscall qw(EPOLLONESHOT EPOLLIN EPOLLOUT EPOLLET our @EXPORT_OK = qw(epoll_ctl epoll_wait); my $owner_pid = -1; # kqueue is close-on-fork (yes, fork, not exec) +sub EV_DISPATCH () { 0x0080 } + # map EPOLL* bits to kqueue EV_* flags for EV_SET sub kq_flag ($$) { my ($bit, $ev) = @_; -- cgit v1.2.3-24-ge0c7