Created
June 30, 2011 19:01
-
-
Save ajsharp/1056924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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