[Mongrel] "mongrel_rails stop" leaving undeleted .pid files

Alexey Verkhovsky alexey.verkhovsky at gmail.com
Fri Mar 16 22:54:16 EDT 2007


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 


More information about the Mongrel-users mailing list