mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
(mds)
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:
1 parent
ca49b28372
commit
6927c8e1c5
1 file changed
+2
-2
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user