Method: Puppet::Util::Pidlock#lock
- Defined in:
- lib/puppet/util/pidlock.rb
#lock ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 |
# File 'lib/puppet/util/pidlock.rb', line 19 def lock return mine? if locked? @lockfile.lock(Process.pid) end |