about summary refs log tree commit homepage
path: root/script/public-inbox-watch
diff options
context:
space:
mode:
Diffstat (limited to 'script/public-inbox-watch')
-rwxr-xr-xscript/public-inbox-watch3
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);
 }