diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-24 09:27:31 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-24 09:27:31 -0700 |
commit | 3a624fe924b8f3a9dfdcf5222ed6d1968f462468 (patch) | |
tree | aad05d118b1b3cf7dcc990e02d167c6465bab4ed | |
parent | fef9051c74645bdd43488d44215fe912d0c033b6 (diff) | |
download | unicorn-3a624fe924b8f3a9dfdcf5222ed6d1968f462468.tar.gz |
Thanks to Greg Melton for reporting.
-rw-r--r-- | lib/unicorn/configurator.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 80584f0..a074fcf 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -33,10 +33,11 @@ module Unicorn # # will then kill off the old master process with a SIGQUIT. # old_pid = "#{server.config[:pid]}.oldbin" # if old_pid != server.pid - # begin - # sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU - # Process.kill(sig, File.read(old_pid).to_i) - # rescue Errno::ENOENT, Errno::ESRCH + # begin + # sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU + # Process.kill(sig, File.read(old_pid).to_i) + # rescue Errno::ENOENT, Errno::ESRCH + # end # end # # # optionally throttle the master from forking too quickly by sleeping |