From: Dean Takemori <deant@hawaii.rr.com>
Add END {} block to restore fans on many kinds of errors/interrupts.
Remove arugment from restorefans


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2602 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2004-06-19 19:56:12 +00:00
1 parent ca49b28372
commit 6927c8e1c5
1 file changed
+2 -2
+2 -2
View File
@@ -73,6 +73,8 @@ sub restorefans();
sub calc(@);
sub UpdateFanSpeeds();
END { restorefans(); }
our $opt_d;
getopts('d');
@@ -296,8 +298,6 @@ sub pwmenable($)
################################################################
sub restorefans()
{
my $sigtype = shift;
$SIG{TERM} = 'IGNORE';
$SIG{HUP} = 'IGNORE';
$SIG{INT} = 'IGNORE';