Skip to content

Instantly share code, notes, and snippets.

@floere
Created July 11, 2011 00:52
Show Gist options
  • Save floere/1075153 to your computer and use it in GitHub Desktop.
Save floere/1075153 to your computer and use it in GitHub Desktop.
When trapping Signals in your lib, please think about doing it like so:
# When trapping Signals in your lib, please think about doing it like so:
#
old_handler = Signal.trap('SIGNALNAME') {}
Signal.trap('SIGNALNAME') do
# Whatever you'd like to do.
# Then:
old_handler.call
end
@floere
Copy link
Author

floere commented Jul 12, 2011

Absolutely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment