Skip to content

Instantly share code, notes, and snippets.

@wolfedale
Created July 31, 2014 11:44
Show Gist options
  • Save wolfedale/8c16bbe4975e9e079464 to your computer and use it in GitHub Desktop.
Save wolfedale/8c16bbe4975e9e079464 to your computer and use it in GitHub Desktop.
Process.daemon
pid = Process.pid
n = 1
50.times do
puts "My proc nr: #{n}"
sleep 1
n = n+1
end
Process.kill(15, pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment