This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Pass the canonical signal name to the signal handler when it is invoked.
authorTodd Rinaldo <toddr@cpan.org>
Thu, 30 Jan 2020 17:53:31 +0000 (11:53 -0600)
committerTodd Rinaldo <toddr@cpan.org>
Tue, 4 Feb 2020 19:32:37 +0000 (13:32 -0600)
commit92d4124ba4c1d1465a3a7cd6ae35bb0ad116b073
tree1427fddfc0334132cd9162dbfed1ecc3a3096806
parent34d254cefc451e5ab438acf22a51d7b557c05a0e
Pass the canonical signal name to the signal handler when it is invoked.

Prior to this change, when a signal handler was invoked, the signame passed
into the sub would be the name of the signal that was defined first via {}.
This meant that the handler had to either be aware of the duplicates and
handle things appropriately or it would be at the mercy of action at a
distance the handler might be unaware of.

This change assures a consistent signal name for now on. It should be
the first signal listed in $Config{sig_name}. Duplicates are listed
at the end.
MANIFEST
mg.c
t/op/signame_canonical.t [new file with mode: 0644]