Displaying 1 result from an estimated 1 matches for "ready_pipe".
Did you mean:
read_pipe
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...soft_kill_each_worker(:QUIT)
+ else
+ kill_each_worker(:TERM)
+ end
sleep(0.1)
reap_all_workers
end
@@ -498,6 +494,7 @@ class Unicorn::HttpServer
end
def after_fork_internal
+ SELF_PIPE.each { |io| io.close }.clear # this is master-only, now
@ready_pipe.close if @ready_pipe
Unicorn::Configurator::RACKUP.clear
@ready_pipe = @init_listeners = @before_exec = @before_fork = nil
@@ -517,6 +514,7 @@ class Unicorn::HttpServer
before_fork.call(self, worker)
if pid = fork
WORKERS[pid] = worker
+ worker.atfork_parent...