Browse files

Fixed FCGI handling [#1854 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 7aa847f commit dcc2407d9976740cebe6736ec6adeae269b81203 @wagenet wagenet committed with josh Feb 5, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/fcgi_handler.rb
View
2 railties/lib/fcgi_handler.rb
@@ -1,3 +1,4 @@
+FCGI_PURE_RUBY = true
require 'fcgi'
require 'logger'
require 'dispatcher'
@@ -98,6 +99,7 @@ def process_request(cgi)
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

0 comments on commit dcc2407

Please sign in to comment.