Skip to content

Commit

Permalink
Fixed FCGI handling [#1854 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
wagenet authored and josh committed Feb 5, 2009
1 parent 7aa847f commit dcc2407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/lib/fcgi_handler.rb
@@ -1,3 +1,4 @@
FCGI_PURE_RUBY = true
require 'fcgi'
require 'logger'
require 'dispatcher'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dcc2407

Please sign in to comment.