Skip to content

Commit

Permalink
stop error messages on DEFAULT signal-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 25, 2024
1 parent 767ca59 commit b1fee65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PDL/Graphics/PGPLOT/Window.pm
Expand Up @@ -2343,8 +2343,8 @@ sub catch_signals (&) {
my(@sigs) = ('INT');
local($_, $@);
if($sig_nest == 0) {
foreach $_(@sigs) {
next if ($SIG{$_}//0) == \&signal_catcher;
foreach (@sigs) {
next if ($SIG{$_}//'') ne 'DEFAULT' and ($SIG{$_}//0) == \&signal_catcher;
$sig_handlers{$_}=$SIG{$_};
$SIG{$_}=\&signal_catcher;
}
Expand Down

0 comments on commit b1fee65

Please sign in to comment.