Skip to content

Instantly share code, notes, and snippets.

@fabrizioc1
Created August 31, 2011 08:00
Show Gist options
  • Save fabrizioc1/1183046 to your computer and use it in GitHub Desktop.
Save fabrizioc1/1183046 to your computer and use it in GitHub Desktop.
Fork Testing
pid = fork do
#Signal.trap('HUP', 'IGNORE') # Don't die upon logout
10.times do
puts "sleeping in child"
sleep 10
end
end
#Process.waitpid(pid)
Process.wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment