better close the file handle too
This commit is contained in:
parent
474937e74c
commit
ed7c7159ae
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue