Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2013 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/5606360 to your computer and use it in GitHub Desktop.
Save anonymous/5606360 to your computer and use it in GitHub Desktop.
t = Thread.new do
if pid = fork
Process.waitpid(pid)
else
raise 'hello'
end
end
t.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment