]> Sergey Matveev's repositories - public-inbox.git/commit
xapcmd: localize %SIG changes using "local"
authorEric Wong <e@80x24.org>
Wed, 13 Nov 2019 07:57:38 +0000 (07:57 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Nov 2019 06:43:10 +0000 (06:43 +0000)
commit45fb16664775746dc4b3f7a55743dbe622a3c5ae
tree516dce2a9124aa1a46da47e8ee10ed73a092afc6
parent2dd86683ec2f237538766d4d632de7cb2dd0f3e3
xapcmd: localize %SIG changes using "local"

Perl's "local" allows changes to %SIG (and %ENV) to be limited
to its enclosing block.  This allows us to get rid of a global
variable and ad-hoc method for restoring signal handlers.
lib/PublicInbox/Xapcmd.pm