diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-03-01 10:20:32 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-03-01 10:20:32 +0000 |
commit | 168bacbea266baecafe72adc1d7fa08674607744 (patch) | |
tree | 2db12125c1fad7b54fbe2f2f60fc73c7761c93e8 | |
parent | 796b2db10446ff263e419b1009f854ca6afa4fe4 (diff) | |
download | zbatery-168bacbea266baecafe72adc1d7fa08674607744.tar.gz |
support "user" directive outside of after_fork hook
This is new in Unicorn 0.97.0, and makes sense to us since we don't fork. It won't work as nicely with log reopening in some cases, but it's better than nothing
-rw-r--r-- | lib/zbatery.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zbatery.rb b/lib/zbatery.rb index 6f2a474..ce542d6 100644 --- a/lib/zbatery.rb +++ b/lib/zbatery.rb @@ -125,6 +125,7 @@ module Rainbows # master == worker in our case def init_worker_process(worker) after_fork.call(self, worker) + worker.user(*user) if user.kind_of?(Array) && ! worker.switched build_app! unless preload_app logger.info "Zbatery #@use worker_connections=#@worker_connections" end |