diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-14 23:49:57 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-14 23:49:57 +0000 |
commit | ddcea26976f24dda8a0cd65022065100bb40fbb7 (patch) | |
tree | 07deaeadcdd9f0cfea4ecb64b2842f98a8c6584a | |
parent | f1d8dd94122395cd7b072aeec8942f2cd6b8ca99 (diff) | |
download | unicorn-ddcea26976f24dda8a0cd65022065100bb40fbb7.tar.gz |
ivar references using @ are slightly faster than calling attribute methods.
-rw-r--r-- | lib/unicorn/http_server.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index d0a8dfc..f07a3fc 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -281,8 +281,7 @@ class Unicorn::HttpServer logger.info "master process ready" # test_exec.rb relies on this message if @ready_pipe @ready_pipe.syswrite($$.to_s) - @ready_pipe.close rescue nil - @ready_pipe = nil + @ready_pipe = @ready_pipe.close rescue nil end begin reap_all_workers @@ -488,7 +487,7 @@ class Unicorn::HttpServer def after_fork_internal @ready_pipe.close if @ready_pipe - self.ready_pipe = nil # XXX Rainbows! compat, change for Unicorn 4.x + @ready_pipe = nil srand # http://redmine.ruby-lang.org/issues/4338 # The OpenSSL PRNG is seeded with only the pid, and apps with frequently |