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

Fixed FCGI handling [#1854 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Peter Wagenet 2009-02-05 16:21:50 -06:00 committed by Joshua Peek
parent 7aa847fab4
commit dcc2407d99

View file

@ -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