summaryrefslogtreecommitdiff
path: root/ext/curses
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-23 10:59:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-23 10:59:00 +0000
commita49fc9beb620090bbca309cfb1c1167644a38d46 (patch)
tree7e0e9afefe1b0258f9212097fcb09667f9d21692 /ext/curses
parent57e95f86be629449cba21e4d1893bb5e11214e5d (diff)
* ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses')
-rw-r--r--ext/curses/rain.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/rain.rb b/ext/curses/rain.rb
index 36f0f84de2..a6019b26e0 100644
--- a/ext/curses/rain.rb
+++ b/ext/curses/rain.rb
@@ -14,7 +14,7 @@ def ranf
end
# main #
-for i in 1 .. 15 # SIGHUP .. SIGTERM
+for i in %w[HUP INT QUIT TERM]
if trap(i, "SIG_IGN") != 0 then # 0 for SIG_IGN
trap(i) {|sig| onsig(sig) }
end