about summary refs log tree commit homepage
path: root/script/public-inbox-watch
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-13 19:06:16 -1200
committerEric Wong <e@80x24.org>2021-01-14 23:14:08 +0000
commitb552bb9150775fe4b5a9eb76803e8859c647be92 (patch)
tree56e48222cd16481c6f4bc53a130f4c68e0628794 /script/public-inbox-watch
parent39d44555e3f04c97e98c7f5d3538bbba6a19656b (diff)
downloadpublic-inbox-b552bb9150775fe4b5a9eb76803e8859c647be92.tar.gz
It turns out "local" did not take effect in the way we used it:
  http://nntp.perl.org/group/perl.perl5.porters/258784
  <CAHhgV8hPbcmkzWizp6Vijw921M5BOXixj4+zTh3nRS9vRBYk8w@mail.gmail.com>

Fortunately, none of the old use cases seem affected, unlike the
previous lei change to ensure consistent SIGPIPE handling.
Diffstat (limited to 'script/public-inbox-watch')
-rwxr-xr-xscript/public-inbox-watch2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-watch b/script/public-inbox-watch
index 10c7cd6f..86349d71 100755
--- a/script/public-inbox-watch
+++ b/script/public-inbox-watch
@@ -58,7 +58,7 @@ if ($watch) {
         PublicInbox::DS::requeue($scan) if $do_scan;
 
         my $sigfd = PublicInbox::Sigfd->new($sig, SFD_NONBLOCK);
-        local %SIG = (%SIG, %$sig) if !$sigfd;
+        local @SIG{keys %$sig} = values(%$sig) unless $sigfd;
         if (!$sigfd) {
                 PublicInbox::DS::sig_setmask($oldset);
                 PublicInbox::DS->SetLoopTimeout(1000);