]> iEval git - gruntmaster-daemon.git/commitdiff
Fix previous commit
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Dec 2013 15:33:22 +0000 (17:33 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Dec 2013 15:33:22 +0000 (17:33 +0200)
lib/Gruntmaster/Daemon/Base.pm

index d63ddee874b8161bfff4784d7525dd38d9fad2b1..3f6416c858534d78b6e6a405ef64c72f4fe8fbe8 100644 (file)
@@ -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 {
This page took 0.022325 seconds and 4 git commands to generate.