]> Sergey Matveev's repositories - public-inbox.git/commit
inboxidle: support Linux::Inotify2 1.x
authorEric Wong <e@yhbt.net>
Sun, 14 Jun 2020 00:25:04 +0000 (00:25 +0000)
committerEric Wong <e@yhbt.net>
Mon, 15 Jun 2020 06:07:54 +0000 (06:07 +0000)
commit192dd6249c1960380241d73d099d5477028c259a
tree67ad20d45aa319cf6697d1ebff27d10c6d74356a
parent4042599799a3706d1b1c0589675b07cab610505a
inboxidle: support Linux::Inotify2 1.x

Linux::Inotify2 1.x lacked ->on_overflow and ->broadcast
methods.  Just don't use them for now.  We may eventually
provide a pure Perl alternative which doesn't require closures,
XS, or the common::sense dependency.

Overflowing the inotify queue seems difficult to trigger at
the moment: /proc/sys/fs/inotify/max_queued_events defaults
to 16384 on a my CentOS 7.x VM with 2GB RAM.
lib/PublicInbox/InboxIdle.pm