From ed7c7159aef18f7bf5b70db38f07262c7ae595d4 Mon Sep 17 00:00:00 2001 From: Mikael Nordin Date: Tue, 17 Jan 2017 10:42:16 +0100 Subject: [PATCH] better close the file handle too --- cluster_cron.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster_cron.pl b/cluster_cron.pl index f75ddf9..240b797 100755 --- a/cluster_cron.pl +++ b/cluster_cron.pl @@ -224,6 +224,7 @@ sub run { $is_empty = 0; } } + close $fh; unless($is_empty) { print "There has been a failover, switching to active cronfile\n"; copy($activesharedcronfile, $cronfile);