Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2013 02:01
Show Gist options
  • Save anonymous/4459193 to your computer and use it in GitHub Desktop.
Save anonymous/4459193 to your computer and use it in GitHub Desktop.
MRI just kills the process
Thread.abort_on_exception=true
Thread.new { sleep 5; File.rename('non2', 'non') }
begin
sleep
rescue Exception => e
p e, e.backtrace, e.class
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment