1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
David Heinemeier Hansson 2005-09-28 19:39:12 +00:00
parent 8e4f27a50a
commit 00e085f5a5

View file

@ -66,10 +66,10 @@ class RailsFCGIHandler
# Break if graceful exit or restart requested. # Break if graceful exit or restart requested.
case when_ready case when_ready
when :exit when :exit
close_connection close_connection(cgi)
break break
when :restart when :restart
close_connection close_connection(cgi)
restart! restart!
end end
@ -178,7 +178,7 @@ class RailsFCGIHandler
GC.enable; GC.start; GC.disable GC.enable; GC.start; GC.disable
end end
def close_connection def close_connection(cgi)
cgi.instance_variable_get("@request").finish cgi.instance_variable_get("@request").finish
end end
end end