From 00e085f5a51c7dae014adb796e9ebb510cbabf41 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 28 Sep 2005 19:39:12 +0000 Subject: Solved the hanging issue.. USR2 is now the preferred way of restarting FCGIs! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/fcgi_handler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/lib') diff --git a/railties/lib/fcgi_handler.rb b/railties/lib/fcgi_handler.rb index ee33c7ff36..b0468634f1 100644 --- a/railties/lib/fcgi_handler.rb +++ b/railties/lib/fcgi_handler.rb @@ -66,10 +66,10 @@ class RailsFCGIHandler # Break if graceful exit or restart requested. case when_ready when :exit - close_connection + close_connection(cgi) break when :restart - close_connection + close_connection(cgi) restart! end @@ -178,7 +178,7 @@ class RailsFCGIHandler GC.enable; GC.start; GC.disable end - def close_connection + def close_connection(cgi) cgi.instance_variable_get("@request").finish end end -- cgit v1.2.3