From: Marius Gavrilescu Date: Sun, 8 Dec 2013 15:33:22 +0000 (+0200) Subject: Fix previous commit X-Git-Tag: 5999.000_001~40 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=e3a3697ae29ae07d285d138b382c364136de0999;ds=sidebyside Fix previous commit --- 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 {