about summary refs log tree commit homepage
path: root/test/unit/test_signals.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-13 11:46:14 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-13 12:01:20 -0700
commitf34618e64b254f7792b476acf2e7eb426aa551a2 (patch)
tree4d3e6ee0358e53667f1b512cb930afe4cd9d5911 /test/unit/test_signals.rb
parenta9d022298c194edf296d6d19ff97c8b8a6ce4839 (diff)
downloadunicorn-f34618e64b254f7792b476acf2e7eb426aa551a2.tar.gz
Instead of just worker.nr.  This is a configuration file/API
change and will break existing configurations.

This allows worker.tempfile to be exposed to the hooks
so ownership changes can still happen on it.

On the other hand, I don't know of many people actually
using this feature (or Unicorn).
Diffstat (limited to 'test/unit/test_signals.rb')
-rw-r--r--test/unit/test_signals.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_signals.rb b/test/unit/test_signals.rb
index 45de263..bedce01 100644
--- a/test/unit/test_signals.rb
+++ b/test/unit/test_signals.rb
@@ -30,7 +30,7 @@ class SignalsTest < Test::Unit::TestCase
     tmp.chmod(0)
     @server_opts = {
       :listeners => [ "127.0.0.1:#@port", @tmp.path ],
-      :after_fork => lambda { |server,worker_nr|
+      :after_fork => lambda { |server,worker|
         trap(:HUP) { tmp.chmod(n += 1) }
       },
     }