instance method install_signal_handler

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

install_signal_handler(signal, handler = nil)

No documentation comment.

Parameters

signal req
handler opt = nil
Source
# File railties/lib/fcgi_handler.rb, line 137
    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

Defined in railties/lib/fcgi_handler.rb line 137 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RailsFCGIHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close