From bdc66b55eeefa46ef863cc6c18cc3ef570034a4a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Oct 2021 03:09:21 +0000 Subject: http_server: get rid of Process.ppid check It's actually been unnecessary since commit 6f6e4115b4bb03e5 (rework master-to-worker signaling to use a pipe, 2013-12-09) --- lib/unicorn/http_server.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index cd6e63b..09c5ec2 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -708,7 +708,6 @@ class Unicorn::HttpServer # for connections and doesn't die until the parent dies (or is # given a INT, QUIT, or TERM signal) def worker_loop(worker) - ppid = @master_pid readers = init_worker_process(worker) nr = 0 # this becomes negative if we need to reopen logs @@ -745,8 +744,6 @@ class Unicorn::HttpServer redo end - ppid == Process.ppid or return - # timeout used so we can detect parent death: worker.tick = time_now.to_i ret = IO.select(readers, nil, nil, @timeout) and ready = ret[0] -- cgit v1.2.3-24-ge0c7