From 3a624fe924b8f3a9dfdcf5222ed6d1968f462468 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 24 Oct 2009 09:27:31 -0700 Subject: configurator: fix broken example in RDoc Thanks to Greg Melton for reporting. --- lib/unicorn/configurator.rb | 9 +++++---- 1 file 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 -- cgit v1.2.3-24-ge0c7