From 5544418af3fb810ef90f33bcf88a434cd0349dc8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 21:05:21 +0000 Subject: remove "worker_" prefix from atfork hooks It was totally unnecessary and just made things hard-to-follow. --- lib/yahns/server.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/yahns/server.rb') diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index 92adf52..330bcc8 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -14,9 +14,9 @@ class Yahns::Server # :nodoc: attr_writer :before_exec attr_writer :worker_processes attr_writer :shutdown_timeout - attr_writer :worker_atfork_prepare - attr_writer :worker_atfork_parent - attr_writer :worker_atfork_child + attr_writer :atfork_prepare + attr_writer :atfork_parent + attr_writer :atfork_child include Yahns::SocketHelper def initialize(config) @@ -32,7 +32,7 @@ class Yahns::Server # :nodoc: @pid = nil @worker_processes = nil @before_exec = nil - @worker_atfork_prepare = @worker_atfork_parent = @worker_atfork_child = nil + @atfork_prepare = @atfork_parent = @atfork_child = nil @user = nil @queues = [] @wthr = [] -- cgit v1.2.3-24-ge0c7