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:
parent
7aa847fab4
commit
dcc2407d99
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue