about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-06-04 00:58:57 +0000
committerEric Wong <e@80x24.org>2015-06-04 00:58:57 +0000
commitce18d9aa898c6634d975a867ead3dc80f808739a (patch)
treefa34cb1489c40ac0ea5177068c0a7e637fd1a84f /test
parent07b38bea048bddc9ceed3e2a4ceaff357fdd74c0 (diff)
downloadunicorn-ce18d9aa898c6634d975a867ead3dc80f808739a.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb5
1 files changed, 3 insertions, 2 deletions
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