Created
February 19, 2016 03:27
-
-
Save Imfloppy/41607de37d7fed11c85d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [:INT, :TERM, :HUP].each do |s| | |
| Signal.trap(s) { | |
| puts "#{s}" | |
| exit 1 | |
| } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment