Sha256: 799eea634aa54933db2e37013aa47764cc388759390c8ebb96c4dd2020de5e98

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

module ProconBypassMan::SignalHandler
  def handle_signal(sig)
    ProconBypassMan.logger.info "#{$$}で#{sig}を受け取りました"
    case sig
    when 'USR2'
      raise ProconBypassMan::InterruptForRestart
    when 'INT', 'TERM'
      raise Interrupt
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/support/signal_handler.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/support/signal_handler.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/support/signal_handler.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/support/signal_handler.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/support/signal_handler.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/support/signal_handler.rb