From 7b8a254c86b9b19f34f17a4003b6399a8a37b06d Mon Sep 17 00:00:00 2001 From: eldy <> Date: Sat, 21 Sep 2002 01:01:41 +0000 Subject: [PATCH] Fixed bug in signal hook. --- wwwroot/cgi-bin/awstats.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 32b2a3f8..85946437 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -3498,15 +3498,16 @@ sub Lock_Update { #-------------------------------------------------------------------- # Function: Signal handler to call Lock_Update to remove lock file -# Parameters: None +# Parameters: Signal name # Input: None # Output: None # Return: None #-------------------------------------------------------------------- sub SigHandler { - #my $signame = shift; + my $signame = shift; + print ucfirst($PROG)." process (ID $$) interrupted by signal $signame.\n"; &Lock_Update(0); - sleep 10; + exit 1; } #-------------------------------------------------------------------- @@ -6661,7 +6662,7 @@ EOF $new_browser_h{$key}+=$_browser_h{$key}; } &tab_head("$Message[21]",19); - print "