From b552bb9150775fe4b5a9eb76803e8859c647be92 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Jan 2021 19:06:16 -1200 Subject: daemon+watch: fix localization of %SIG for non-signalfd users It turns out "local" did not take effect in the way we used it: http://nntp.perl.org/group/perl.perl5.porters/258784 Fortunately, none of the old use cases seem affected, unlike the previous lei change to ensure consistent SIGPIPE handling. --- script/public-inbox-watch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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); -- cgit v1.2.3-24-ge0c7