From 1faa89bcd3ac848a15a141b6e92ac5075ecefdd2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 18 Nov 2015 03:58:03 +0000 Subject: http_server: add master_pid attribute We'll need this for unicorn 5, as they dropped this publically accessible attribute while retaining the ivar. Eventually we may not have to check this attribute at all, instead detecting parent death via worker pipe. --- lib/rainbows/http_server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 09f2589..429539c 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -8,6 +8,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer attr_accessor :client_header_buffer_size attr_accessor :client_max_body_size attr_reader :use + attr_reader :master_pid def self.setup(block) Rainbows.server.instance_eval(&block) -- cgit v1.2.3-24-ge0c7