mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Fixed FCGI handling [#1854 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
committed by
Joshua Peek
parent
7aa847fab4
commit
dcc2407d99
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user