Created
May 13, 2009 08:13
-
-
Save simonask/110931 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
child: fork() | |
if !child | |
// this is the child process | |
while true | |
message: Process.message_queue.get_next() | |
// do something with the message | |
end | |
else | |
// this is the mother process | |
child.send_message(#foo, *args) | |
end | |
child_exit_code: child.wait_for_exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment