diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-27 23:47:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-27 23:47:57 -0700 |
commit | 762db4854c06196b8941fe9fb303280429fe4cdc (patch) | |
tree | 90c2f60a384128bc59b2969426f2b4dc8c3a1e96 | |
parent | 2f1155794a6a1709f9e48b8115d6bd3531b2d814 (diff) | |
download | unicorn-762db4854c06196b8941fe9fb303280429fe4cdc.tar.gz |
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.
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |