Skip to content
Browse files

Solved the hanging issue.. USR2 is now the preferred way of restartin…

…g FCGIs!

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8e4f27a commit 00e085f5a51c7dae014adb796e9ebb510cbabf41 @dhh dhh committed Sep 28, 2005
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/fcgi_handler.rb
View
6 railties/lib/fcgi_handler.rb
@@ -66,10 +66,10 @@ def process!(provider = FCGI)
# 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 @@ def run_gc!
GC.enable; GC.start; GC.disable
end
- def close_connection
+ def close_connection(cgi)
cgi.instance_variable_get("@request").finish
end
end

0 comments on commit 00e085f

Please sign in to comment.
Something went wrong with that request. Please try again.