summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarDoug Freed <dwfreed@mtu.edu>2015-03-01 05:33:30 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-01 05:33:30 +0400
commitab9e7059f5bcec4d747f70340899c5d3ee163477 (patch)
tree9dc183eed90cba5c6881b89a9560384f30c65a48
parent1a452fa0a8a7eacc85337e6442329b599be0d7d9 (diff)
More useful output on SIGALARM
-rwxr-xr-xmeta.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta.pl b/meta.pl
index 52abde8..d00ca18 100755
--- a/meta.pl
+++ b/meta.pl
@@ -16,6 +16,7 @@ use Term::ANSIColor qw(:constants);
use File::Monitor;
use feature qw(say);
use HTTP::Async;
+use Carp;
$Data::Dumper::Useqq=1;
@@ -32,7 +33,7 @@ $::settingschanged = 0;
## debug variables. 0 to turn off debugging, else set it to a Term::ANSIColor constant.
%::debugx = (
- "dnsbl" => 0,
+ "dnsbl" => 0, # BLUE,
"pingpong" => 0, #BLUE,
"snotice" => YELLOW,
"sync" => CYAN,
@@ -65,7 +66,8 @@ $SIG{__WARN__} = sub {
sub alarmdeath
{
- die "SIG ALARM!!!\n";
+ $Data::Dumper::Useqq=1;
+ confess "SIG ALARM!!! last line: " . Dumper($::lastline);
}
$SIG{ALRM} = \&alarmdeath;
alarm 300;