Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
1
-
Client 2015-07-22
-
Bug Fix
-
Description
The Puppet::Agent::Locker#lock method documentation says
But that's not actually what happens. Instead it returns whatever the yielded block returns. As a result, there's no way to know if the lock was successfully acquired:Return true/false depending on whether we get the lock.
def lock
|
if lockfile.lock
|
begin
|
yield
|
ensure
|
lockfile.unlock
|
end
|
end
|
end
|
Attachments
Issue Links
- relates to
-
PUP-2574 Puppet agent's locking is subject to race conditions
-
- Closed
-
- links to