# File lib/puppet/daemon.rb, line 44 44: def create_pidfile 45: Puppet::Util.sync(Puppet[:name]).synchronize(Sync::EX) do 46: unless Puppet::Util::Pidlock.new(pidfile).lock 47: raise "Could not create PID file: %s" % [pidfile] 48: end 49: end 50: end