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 d63ddee..3f6416c 100644 (file)
@@ -18,7 +18,7 @@ sub process{
   my $logger = get_logger;
   $logger->debug("Taking job $name...");
   open my $file, ">>$dir/$name/meta.yml";
   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 {
        $logger->debug("Successfully taken job $name, executing callback");
        $cb->("$dir/$name");
   } else {
This page took 0.011213 seconds and 4 git commands to generate.