From 703701aa9907df0c88d52873e47fabb15bb4a320 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2017 01:17:03 +0000 Subject: http_server: initialize @pid ivar This quiets down warnings when run with '-w' --- lib/unicorn/http_server.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/unicorn/http_server.rb') diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index ef897ad..4a2ccce 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -89,6 +89,7 @@ class Unicorn::HttpServer @self_pipe = [] @workers = {} # hash maps PIDs to Workers @sig_queue = [] # signal queue used for self-piping + @pid = nil # we try inheriting listeners first, so we bind them later. # we don't write the pid file until we've bound listeners in case -- cgit v1.2.3-24-ge0c7