From ce18d9aa898c6634d975a867ead3dc80f808739a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 4 Jun 2015 00:58:57 +0000 Subject: http_server: remove a few more accessors and constants Unnecessarily exposed accessors and constants take up unnecessary memory in constant/method tables as well as using extra space in instruction sequences. Preforking servers like unicorn are a bloated pigs anyways, but saving a few hundred bytes here and there can add up and make them marginally less bad. --- test/test_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_helper.rb b/test/test_helper.rb index c4fe07a..c21f75d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -292,6 +292,7 @@ def chunked_spawn(stdout, *cmd) end def reset_sig_handlers - sigs = %w(CHLD).concat(Unicorn::HttpServer::QUEUE_SIGS) - sigs.each { |sig| trap(sig, "DEFAULT") } + %w(WINCH QUIT INT TERM USR1 USR2 HUP TTIN TTOU CHLD).each do |sig| + trap(sig, "DEFAULT") + end end -- cgit v1.2.3-24-ge0c7