Skip to content

Commit

Permalink
forgot to set tempfile in /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
spacelama committed Dec 8, 2020
1 parent eb9ed2a commit 3f7cdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R710-IPMI-TEMP/fan-speed-control.pl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sub set_fans_servo {
return 1;
}

my ($tempfh, $tempfilename) = tempfile("fan-speed-control.XXXXX");
my ($tempfh, $tempfilename) = tempfile("fan-speed-control.XXXXX", TMPDIR => 1);

$SIG{TERM} = $SIG{HUP} = $SIG{INT} = sub { my $signame = shift ; $SIG{$signame} = 'DEFAULT' ; print "Resetting fans back to default\n"; set_fans_default ; kill $signame, $$ };
END {
Expand Down

0 comments on commit 3f7cdab

Please sign in to comment.