Skip to content

Instantly share code, notes, and snippets.

@simonask
Created May 13, 2009 08:13
Show Gist options
  • Save simonask/110931 to your computer and use it in GitHub Desktop.
Save simonask/110931 to your computer and use it in GitHub Desktop.
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