1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because

Signal.signame may raise exception.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-03-03 13:26:40 +00:00
parent dff21f052f
commit f73aefc627
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Mar 3 22:25:24 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because
Signal.signame may raise exception.
Tue Mar 3 16:57:39 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: use 'b' instead of 's' for showing

View file

@ -70,7 +70,7 @@ module EnvUtil
unless (!th_stdout || th_stdout.join(timeout)) && (!th_stderr || th_stderr.join(timeout))
signals = Array(signal).select do |sig|
DEFAULT_SIGNALS[sig.to_s] or
DEFAULT_SIGNALS[Signal.signame(sig)]
DEFAULT_SIGNALS[Signal.signame(sig)] rescue false
end
signals |= [:KILL]
case pgroup = opt[:pgroup]