From 8434480eab56c2c1a854f3bbf5afba01e5a7ae9a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 24 Mar 2012 16:00:11 +0000 Subject: fix not using File::lockf --- lib/Iurt/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Iurt/Config.pm') diff --git a/lib/Iurt/Config.pm b/lib/Iurt/Config.pm index 83251dd..9e539a8 100644 --- a/lib/Iurt/Config.pm +++ b/lib/Iurt/Config.pm @@ -7,6 +7,7 @@ use MDK::Common; use Iurt::Util qw(plog); use strict; use Sys::Hostname; +use File::lockf; our @EXPORT = qw( config_usage @@ -214,7 +215,6 @@ sub dump_cache_par { if (!$status) { unlink $filename; link "$filename.tmp.$daydate", $filename; - # FIXME: File::lockf isn't use(d) or require(d) and isn't even in the distro File::lockf::ulock($file); } else { plog('WARN', "WARNING: locking the cache file $filename failed (status $status $!), try to lock manually"); -- cgit v1.2.1