]> Sergey Matveev's repositories - public-inbox.git/commit
inboxidle: avoid needless syscalls on refresh
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2020 09:34:39 +0000 (09:34 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 19:27:15 +0000 (19:27 +0000)
commit10bf54305da8422d9ece6b809996092c1c4b1786
treefc588a7ba743c1d440beb2e80444503035fd982b
parent5e05c2eb58a450849f1826f3d02ed62b814b6617
inboxidle: avoid needless syscalls on refresh

We don't have to replace a bunch of existing watches
with identical new ones.  On Linux with Linux::Inotify2
installed, this avoids a storm of inotify_add_watch(2)
and inotify_rm_watch(2) syscalls on SIGHUP with -imapd
and "-extindex --watch"
lib/PublicInbox/InboxIdle.pm
t/imapd.t