better close the file handle too

master
Mikael Nordin 7 years ago committed by GitHub
parent 474937e74c
commit ed7c7159ae

@ -224,6 +224,7 @@ sub run {
$is_empty = 0; $is_empty = 0;
} }
} }
close $fh;
unless($is_empty) { unless($is_empty) {
print "There has been a failover, switching to active cronfile\n"; print "There has been a failover, switching to active cronfile\n";
copy($activesharedcronfile, $cronfile); copy($activesharedcronfile, $cronfile);

Loading…
Cancel
Save