Created
August 31, 2011 08:00
-
-
Save fabrizioc1/1183046 to your computer and use it in GitHub Desktop.
Fork Testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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