Changeset 2602

Show
Ignore:
Timestamp:
06/19/04 21:56:12 (9 years ago)
Author:
mds
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/pwm/fancontrol.pl

    r2571 r2602  
    7373sub calc(@); 
    7474sub UpdateFanSpeeds(); 
     75 
     76END { restorefans(); } 
    7577 
    7678our $opt_d; 
     
    297299sub restorefans() 
    298300{ 
    299    my $sigtype = shift; 
    300  
    301301   $SIG{TERM} = 'IGNORE'; 
    302302   $SIG{HUP}  = 'IGNORE';