From 762db4854c06196b8941fe9fb303280429fe4cdc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Sep 2009 23:47:57 -0700 Subject: server: correctly unset reexec_pid on child death Sometimes the upgraded version won't survive and we can fail to unset that pid and instead accidentally create a local variable. This is unlikely to be a problem in practice because this variable is immediately reclobbered when we fork. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index de61c09..6df58c1 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -355,7 +355,7 @@ module Unicorn logger.error "reexec-ed child already running PID:#{reexec_pid}" return rescue Errno::ESRCH - reexec_pid = 0 + self.reexec_pid = 0 end end -- cgit v1.2.3-24-ge0c7