diff options
Diffstat (limited to 'lib/mongrel')
-rw-r--r-- | lib/mongrel/configurator.rb | 2 |
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 |