about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2021-10-01 03:09:21 +0000
committerEric Wong <bofh@yhbt.net>2021-10-04 17:39:55 -0900
commitbdc66b55eeefa46ef863cc6c18cc3ef570034a4a (patch)
tree672484a230e01b7778e2afa55de8c2f24b7b5e31
parent4fb904b3359cbd40007a50939fb44fd74640058f (diff)
downloadunicorn-bdc66b55eeefa46ef863cc6c18cc3ef570034a4a.tar.gz
It's actually been unnecessary since commit 6f6e4115b4bb03e5
(rework master-to-worker signaling to use a pipe, 2013-12-09)
-rw-r--r--lib/unicorn/http_server.rb3
1 files changed, 0 insertions, 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]