Skip to content

Instantly share code, notes, and snippets.

@seanhumbarger
Created November 22, 2013 03:07
Show Gist options
  • Select an option

  • Save seanhumbarger/7594121 to your computer and use it in GitHub Desktop.

Select an option

Save seanhumbarger/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