From b2b1006759730507731fcd3fc3e0de68239e3b92 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 27 Jun 2020 10:03:36 +0000 Subject: watch: remove Filesys::Notify::Simple dependency Since we already use inotify and EVFILT_VNODE (kqueue) in -imapd, we might as well use them directly in -watch, too. This will allow public-inbox-watch to use PublicInbox::DS for timers to watch newsgroups/mailboxes and have saner signal handling in future commits. --- script/public-inbox-watch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-watch b/script/public-inbox-watch index 645abeda..2057066a 100755 --- a/script/public-inbox-watch +++ b/script/public-inbox-watch @@ -21,6 +21,7 @@ if ($watch_md) { $watch_md->quit if $watch_md; $watch_md = undef; }; - alarm(1); + # --no-scan is only intended for testing atm, undocumented. + alarm(1) unless (grep(/\A--no-scan\z/, @ARGV)); $watch_md->watch while ($watch_md); } -- cgit v1.2.3-24-ge0c7