Skip to content

Instantly share code, notes, and snippets.

@apeiros
Created October 19, 2010 12:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeiros/634082 to your computer and use it in GitHub Desktop.
Save apeiros/634082 to your computer and use it in GitHub Desktop.
Terminate current process the hard way (kill -9)
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