Skip to content

Instantly share code, notes, and snippets.

@cowboy-cod3r
Created November 22, 2013 03:07
Show Gist options
  • Save cowboy-cod3r/7594121 to your computer and use it in GitHub Desktop.
Save cowboy-cod3r/7594121 to your computer and use it in GitHub Desktop.
Ruby: Fork
# Fork a Process
pid = fork do
# Do stuff
# Do more stuff
end
# Wait for the process to complete before moving on
Process.wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment