Skip to content

Instantly share code, notes, and snippets.

@dgobaud
Created March 8, 2014 01:15
Show Gist options
  • Save dgobaud/86e9c3b1b3d925274b22 to your computer and use it in GitHub Desktop.
Save dgobaud/86e9c3b1b3d925274b22 to your computer and use it in GitHub Desktop.
Signal.trap 'TERM' do
puts 'AAAAAAAAAAAAAAAAAAAAAAA'
exit
end
(1...5).each do |i|
Signal.trap 'TERM' do
puts 20.times.collect { i }.join
exit
end
end
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment