diff options
author | Eric Wong <e@yhbt.net> | 2020-06-27 10:03:36 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-28 22:27:14 +0000 |
commit | b2b1006759730507731fcd3fc3e0de68239e3b92 (patch) | |
tree | e29d5c29682b05a5d87b9db1452dda92bde6a0d2 /script/public-inbox-watch | |
parent | 5808636263d72b635a46100a7e7037074dad8f75 (diff) | |
download | public-inbox-b2b1006759730507731fcd3fc3e0de68239e3b92.tar.gz |
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.
Diffstat (limited to 'script/public-inbox-watch')
-rwxr-xr-x | script/public-inbox-watch | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |