Skip to content

Instantly share code, notes, and snippets.

@mariovisic
Forked from anonymous/thred_hang.rb
Last active December 17, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariovisic/5606400 to your computer and use it in GitHub Desktop.
Save mariovisic/5606400 to your computer and use it in GitHub Desktop.
t = Thread.new do
pid = fork { raise 'nope' }
Process.waitpid(pid)
end
t.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment