aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/fcgi_handler.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-28 19:39:12 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-28 19:39:12 +0000
commit00e085f5a51c7dae014adb796e9ebb510cbabf41 (patch)
tree9915b1b863c608dadff40f91ed13dbb42e10c5d6 /railties/lib/fcgi_handler.rb
parent8e4f27a50a1c7e70d7f0383cbb9d4a04d2f3ddbd (diff)
downloadrails-00e085f5a51c7dae014adb796e9ebb510cbabf41.tar.gz
rails-00e085f5a51c7dae014adb796e9ebb510cbabf41.tar.bz2
rails-00e085f5a51c7dae014adb796e9ebb510cbabf41.zip
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
Diffstat (limited to 'railties/lib/fcgi_handler.rb')
-rw-r--r--railties/lib/fcgi_handler.rb6
1 files changed, 3 insertions, 3 deletions
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