lib/oxidized/cli.rb in oxidized-0.28.0 vs lib/oxidized/cli.rb in oxidized-0.29.0

- old
+ new

@@ -70,10 +70,10 @@ def write_pid return unless pidfile? begin File.open(pidfile, ::File::CREAT | ::File::EXCL | ::File::WRONLY) { |f| f.write(Process.pid.to_s) } - at_exit { File.delete(pidfile) if File.exist?(pidfile) } + at_exit { FileUtils.rm_f(pidfile) } rescue Errno::EEXIST check_pid retry end end