Methods
Public Class methods
Like Signal.list, but only returns signals that we can actually trap.
[ show source ]
# File lib/phusion_passenger/utils.rb, line 555 555: def self.list_trappable 556: ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby" 557: case ruby_engine 558: when "ruby" 559: result = Signal.list 560: result.delete("ALRM") 561: result.delete("VTALRM") 562: return result 563: when "jruby" 564: result = Signal.list 565: result.delete("QUIT") 566: result.delete("ILL") 567: result.delete("FPE") 568: result.delete("KILL") 569: result.delete("SEGV") 570: result.delete("STOP") 571: result.delete("USR1") 572: return result 573: else 574: return Signal.list 575: end 576: end