From a49fc9beb620090bbca309cfb1c1167644a38d46 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 23 Feb 2012 10:59:00 +0000 Subject: * 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 --- ext/curses/rain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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 -- cgit v1.2.3