diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 10:59:00 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 10:59:00 +0000 |
commit | a49fc9beb620090bbca309cfb1c1167644a38d46 (patch) | |
tree | 7e0e9afefe1b0258f9212097fcb09667f9d21692 /ext/curses | |
parent | 57e95f86be629449cba21e4d1893bb5e11214e5d (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.rb | 2 |
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 |