signame

Signal.signame(signo) รข string
Class Public methods

convert signal number to signal name

Signal.trap("INT") { |signo| puts Signal.signame(signo) }
Process.kill("INT", 0)

produces:

INT
doc_ruby_on_rails
2015-05-14 22:54:33
Comments
Leave a Comment

Please login to continue.