From cf977e706b07e80f394570a393eb2169b9b9a1a7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 28 Dec 2023 04:23:00 +0000 Subject: pure Perl inotify support This is a step towards improving the out-of-the-box experience in achieving notifications without XS, extra downloads, and .so loading + runtime mmap overhead. This also fixes loongarch support of all Linux syscalls due to a bad regexp :x All the reachable Linux architectures listed at should be supported. At the moment, there appears to be no reachable sparc* Linux machines available to cfarm users. Fixes: b0e5093aa3572a86 (syscall: add support for riscv64, 2022-08-11) --- lib/PublicInbox/TailNotify.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/TailNotify.pm') diff --git a/lib/PublicInbox/TailNotify.pm b/lib/PublicInbox/TailNotify.pm index bdb92d54..84340a35 100644 --- a/lib/PublicInbox/TailNotify.pm +++ b/lib/PublicInbox/TailNotify.pm @@ -9,9 +9,9 @@ use PublicInbox::DS qw(now); my ($TAIL_MOD, $ino_cls); if ($^O eq 'linux' && eval { require PublicInbox::Inotify; 1 }) { - $TAIL_MOD = Linux::Inotify2::IN_MOVED_TO() | - Linux::Inotify2::IN_CREATE() | - Linux::Inotify2::IN_MODIFY(); + $TAIL_MOD = PublicInbox::Inotify::IN_MOVED_TO() | + PublicInbox::Inotify::IN_CREATE() | + PublicInbox::Inotify::IN_MODIFY(); $ino_cls = 'PublicInbox::Inotify'; } elsif (eval { require PublicInbox::KQNotify }) { $TAIL_MOD = PublicInbox::KQNotify::MOVED_TO_OR_CREATE() | -- cgit v1.2.3-24-ge0c7