From ce44079818c9307ed20a2f11b2bf7933803f78f7 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 22 Jun 2005 11:26:00 +0000 Subject: [PATCH] Missing parameter for trap_handler in dispatch.fcgi git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/dispatches/dispatch.fcgi | 2 +- railties/test/fcgi_dispatcher_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/dispatches/dispatch.fcgi b/railties/dispatches/dispatch.fcgi index ed04839d6f..2d298c1935 100755 --- a/railties/dispatches/dispatch.fcgi +++ b/railties/dispatches/dispatch.fcgi @@ -71,7 +71,7 @@ class RailsFCGIHandler dispatcher_log(:error, error_message) end - def trap_handler + def trap_handler(signal) if i_am_currently_processing_a_request dispatcher_log(:info, "asking #{$$} to terminate ASAP") @please_exit_at_your_earliest_convenience = true diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb index 3aeb447fa1..466eefe225 100644 --- a/railties/test/fcgi_dispatcher_test.rb +++ b/railties/test/fcgi_dispatcher_test.rb @@ -23,7 +23,7 @@ class RailsFCGIHandler end def send_signal(which) - @signal_handlers[which].call + @signal_handlers[which].call(which) end end