about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/mongrel/configurator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mongrel/configurator.rb b/lib/mongrel/configurator.rb
index ea84578..e7af9a9 100644
--- a/lib/mongrel/configurator.rb
+++ b/lib/mongrel/configurator.rb
@@ -341,7 +341,7 @@ module Mongrel
       trap("INT") { log "INT signal received."; stop(need_restart=false) }
 
       # clean up the pid file always
-      at_exit { File.unlink(@pid_file) if File.exists?(@pid_file) }
+      at_exit { File.unlink(@pid_file) if @pid_file and File.exists?(@pid_file) }
 
       if RUBY_PLATFORM !~ /mswin/
         # graceful shutdown