Class: Puma::Signal

Inherits:
Object
  • Object
show all
Defined in:
lib/oxidized/signals.rb

Class Method Summary collapse

Class Method Details

.os_trapObject



6
# File 'lib/oxidized/signals.rb', line 6

alias os_trap trap

.trap(sig, &block) ⇒ Object



7
8
9
10
# File 'lib/oxidized/signals.rb', line 7

def Signal.trap(sig, &block)
  sigshortname = sig.gsub "SIG", ''
  Oxidized::Signals.register_signal(sig, block) unless sigshortname.eql? 'HUP'
end