Type:
Class

Raised when a signal is received.

begin
  Process.kill('HUP',Process.pid)
  sleep # wait for receiver to handle signal sent by Process.kill
rescue SignalException => e
  puts "received Exception #{e}"
end

produces:

received Exception SIGHUP
new

SignalException.new(sig_name) â signal_exceptionSignalException.new(sig_number [, name]) â signal_exception

2015-05-14 23:11:51
signo

signal_exception.signo â num Instance Public methods Returns a signal number

2015-05-14 23:15:08