Skip to content

Instantly share code, notes, and snippets.

@auroranockert
Created August 25, 2015 14:35
Show Gist options
  • Save auroranockert/05e03714f57ee04ec2da to your computer and use it in GitHub Desktop.
Save auroranockert/05e03714f57ee04ec2da to your computer and use it in GitHub Desktop.
Signal.trap('CHLD') do
puts "Got sigchld"
end
pid = Process.spawn('tail -f /var/log/system.log')
Process.kill('TERM', pid)
p Process.waitpid2(pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment