Skip to content

Instantly share code, notes, and snippets.

@morhekil
Forked from anonymous/thred_hang.rb
Last active December 17, 2015 11:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
t = Thread.new do
pid = fork do
raise 'hello'
end
Process.waitpid(pid)
end
t.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment