Skip to content

Commit

Permalink
unicorn.rb.example のバグ修正
Browse files Browse the repository at this point in the history
issue #12
  • Loading branch information
koi-chan committed Dec 23, 2016
1 parent af2e539 commit 3099f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/unicorn.rb.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ before_fork do |server, worker|
old_pid = "#{server.config[:pid]}.oldbin"
if old_pid != server.pid
begin
sig = (worker.nr + 1) >= server.worker_prosesses ? :QUIT : :TTOU
Process.kill(sig, File.read(old_pid).to_i
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
Expand Down

0 comments on commit 3099f07

Please sign in to comment.