diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-27 09:46:23 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-27 09:46:23 +0000 |
commit | 62fc74fb1234cba1b2c1db3014849584f52be040 (patch) | |
tree | c46d2f5e71a8a28bc53851fc7b95f2df79c18f1a /lib/zbatery.rb | |
parent | 5466c7ca5de06e3fcfc76561d23f014d7762a03c (diff) | |
download | zbatery-62fc74fb1234cba1b2c1db3014849584f52be040.tar.gz |
resync with Rainbows! 4.0.0
There are some internal changes in Unicorn and Rainbows! 4.x
Diffstat (limited to 'lib/zbatery.rb')
-rw-r--r-- | lib/zbatery.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/zbatery.rb b/lib/zbatery.rb index f038f63..48cf63e 100644 --- a/lib/zbatery.rb +++ b/lib/zbatery.rb @@ -33,7 +33,7 @@ module Rainbows after_fork.call(self, worker) worker.user(*user) if user.kind_of?(Array) && ! worker.switched build_app! unless preload_app - Rainbows::Response.setup(self.class) + Rainbows::Response.setup Rainbows::MaxBody.setup Rainbows::ProcessClient.const_set(:APP, @app) @@ -72,6 +72,7 @@ module Rainbows # no-op def maintain_worker_count; end + def spawn_missing_workers; end def init_self_pipe!; end # can't just do a graceful exit if reopening logs fails, so we just @@ -107,7 +108,7 @@ module Rainbows self.ready_pipe = nil end extend(Rainbows.const_get(@use)) - worker = Worker.new(0, DeadIO.new) + worker = Worker.new(0) before_fork.call(self, worker) worker_loop(worker) # runs forever end |