Alexey Verkhovsky
2007-Mar-17 02:54 UTC
[Mongrel] "mongrel_rails stop" leaving undeleted .pid files
I''m looking at implementation of Mongrel::Stop.run:
def run
if @force
@wait.to_i.times do |waiting|
exit(0) if not File.exist? @pid_file
sleep 1
end
Mongrel::send_signal("KILL", @pid_file) if File.exist?
@pid_file
else
Mongrel::send_signal("TERM", @pid_file)
end
end
and a question arises: is there any good reason not to rm_f(@pid_file) after
sending that SIGKILL? More likely than not, this is how the PID files are
left undeleted.
Alex Verkhovsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/mongrel-users/attachments/20070316/1263f7c8/attachment.html
