Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created July 9, 2013 04:08
Show Gist options
  • Save evanphx/5954625 to your computer and use it in GitHub Desktop.
Save evanphx/5954625 to your computer and use it in GitHub Desktop.
r, w = IO.pipe
t = Thread.new { puts "start"; IO.select([r]); puts "alive" }
sleep 1
Process.daemon true, true
puts Process.pid
t.join
puts "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment