protected Method

RailsFCGIHandler.install_signal_handler(signal, handler = nil)

There's no documentation for this item.

Source Code

# File fcgi_handler.rb, line 133
def install_signal_handler(signal, handler = nil)
  if SIGNALS.include?(signal) && self.class.method_defined?(name = "#{SIGNALS[signal]}_handler")
    handler ||= method(name).to_proc

    begin
      trap(signal, handler)
    rescue ArgumentError
      dispatcher_log :warn, "Ignoring unsupported signal #{signal}."
    end
  else
    dispatcher_log :warn, "Ignoring unsupported signal #{signal}."
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.