From e3a3697ae29ae07d285d138b382c364136de0999 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Dec 2013 17:33:22 +0200 Subject: [PATCH] Fix previous commit --- lib/Gruntmaster/Daemon/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Daemon/Base.pm b/lib/Gruntmaster/Daemon/Base.pm index d63ddee..3f6416c 100644 --- a/lib/Gruntmaster/Daemon/Base.pm +++ b/lib/Gruntmaster/Daemon/Base.pm @@ -18,7 +18,7 @@ sub process{ my $logger = get_logger; $logger->debug("Taking job $name..."); open my $file, ">>$dir/$name/meta.yml"; - if (flock my $file, LOCK_EX|LOCK_NB){ + if (flock $file, LOCK_EX|LOCK_NB){ $logger->debug("Successfully taken job $name, executing callback"); $cb->("$dir/$name"); } else { -- 2.39.2