diff options
| author | 2015-03-01 05:33:30 +0400 | |
|---|---|---|
| committer | 2015-03-01 05:33:30 +0400 | |
| commit | ab9e7059f5bcec4d747f70340899c5d3ee163477 (patch) | |
| tree | 9dc183eed90cba5c6881b89a9560384f30c65a48 | |
| parent | 1a452fa0a8a7eacc85337e6442329b599be0d7d9 (diff) | |
More useful output on SIGALARM
| -rwxr-xr-x | meta.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |
