Skip to content

Instantly share code, notes, and snippets.

@m1foley
Created May 30, 2013 20:48
Show Gist options
  • Save m1foley/5681104 to your computer and use it in GitHub Desktop.
Save m1foley/5681104 to your computer and use it in GitHub Desktop.
module SignalTrapper
def self.trap(*args, &block)
Signal.trap(*args, &block)
end
def self.trap_or_warn(*args, &block)
trap(*args, &block)
rescue ArgumentError => e
warn e
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment