Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created June 30, 2011 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajsharp/1056924 to your computer and use it in GitHub Desktop.
Save ajsharp/1056924 to your computer and use it in GitHub Desktop.
# shelling out to the system here is what triggers signal trap bug.
# If we remove this line, all works as intended.
#
# This issue affects ruby 1.9.2-p180 and ubuntu 11.04, kernel version 2.6.38-8-virtual
# References: https://bugzilla.kernel.org/show_bug.cgi?id=32922
`echo blah`
loop do
trap("INT") { puts("exiting..."); exit(0) }
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment