[pve-devel] r6452 - pve-access-control/trunk/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Aug 11 07:30:25 CEST 2011


Author: dietmar
Date: 2011-08-11 07:30:25 +0200 (Thu, 11 Aug 2011)
New Revision: 6452

Modified:
   pve-access-control/trunk/PVE/RPCEnvironment.pm
Log:
fix lock_file call


Modified: pve-access-control/trunk/PVE/RPCEnvironment.pm
===================================================================
--- pve-access-control/trunk/PVE/RPCEnvironment.pm	2011-08-11 05:27:16 UTC (rev 6451)
+++ pve-access-control/trunk/PVE/RPCEnvironment.pm	2011-08-11 05:30:25 UTC (rev 6452)
@@ -421,11 +421,9 @@
 	return $tlist;
     };
 
-    my $res = PVE::Tools::lock_file($lkfn, $timeout, "active_workers", $code);
-    my $err = $@;
+    my $res = PVE::Tools::lock_file($lkfn, $timeout, $code);
+    die $@ if $@;
 
-    die $err if $err;
-
     return $res;
 }
 



More information about the pve-devel mailing list