lib/daemons/pidfile.rb in mikehale-daemons-1.0.12.3 vs lib/daemons/pidfile.rb in mikehale-daemons-1.0.12.4
- old
+ new
@@ -90,9 +90,10 @@
File.exist? filename
end
def pid=(p)
File.open(filename, 'w') {|f|
+ f.chmod(0644)
f.puts p #Process.pid
}
end
def cleanup
\ No newline at end of file