diff options
author | Eric Wong <e@80x24.org> | 2019-11-27 01:33:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-27 10:25:41 +0000 |
commit | 1e44ee6d429b853a7a87ae58e56241c55ab8c306 (patch) | |
tree | f9365f9a457cfa261a1a65fe4da5af3ff4db1fe7 /lib/PublicInbox/DSKQXS.pm | |
parent | d462440b512629fd8ef444ce105477fcab2ae6b1 (diff) | |
download | public-inbox-1e44ee6d429b853a7a87ae58e56241c55ab8c306.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/DSKQXS.pm')
-rw-r--r-- | lib/PublicInbox/DSKQXS.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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) = @_; |