Created
October 19, 2010 12:01
-
-
Save apeiros/634082 to your computer and use it in GitHub Desktop.
Terminate current process the hard way (kill -9)
This file contains 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
module Kernel | |
# Terminate the current process - the hard way | |
def t! | |
`kill -9 #{$$}` | |
end | |
module_function :t! | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment