aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorPeter Wagenet <peter.wagenet@gmail.com>2009-02-05 16:21:50 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-05 16:21:50 -0600
commitdcc2407d9976740cebe6736ec6adeae269b81203 (patch)
tree44e99e44a211a6b46a8877e8f54b9d16ea17cc75 /railties
parent7aa847fab4da41bfa30fa356fc0d7d79b7081734 (diff)
downloadrails-dcc2407d9976740cebe6736ec6adeae269b81203.tar.gz
rails-dcc2407d9976740cebe6736ec6adeae269b81203.tar.bz2
rails-dcc2407d9976740cebe6736ec6adeae269b81203.zip
Fixed FCGI handling [#1854 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/fcgi_handler.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/fcgi_handler.rb b/railties/lib/fcgi_handler.rb
index 1256ef2286..53f555d5e1 100644
--- a/railties/lib/fcgi_handler.rb
+++ b/railties/lib/fcgi_handler.rb
@@ -1,3 +1,4 @@
+FCGI_PURE_RUBY = true
require 'fcgi'
require 'logger'
require 'dispatcher'
@@ -98,6 +99,7 @@ class RailsFCGIHandler
with_signal_handler 'USR1' do
begin
+ cgi = FCGI::Request.new(cgi.id, cgi.env_table, cgi.stdinput, cgi.stdoutput)
::Rack::Handler::FastCGI.serve(cgi, Dispatcher.new)
rescue SignalException, SystemExit
raise