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