ruby-changes:37714
From: nobu <ko1@a...>
Date: Sun, 1 Mar 2015 20:21:45 +0900 (JST)
Subject: [ruby-changes:37714] nobu:r49795 (trunk): envutil.rb: signal argument
nobu 2015-03-01 20:21:40 +0900 (Sun, 01 Mar 2015) New Revision: 49795 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49795 Log: envutil.rb: signal argument * test/lib/envutil.rb (invoke_ruby): add optional keyword argument of signal to be sent to hung-up process. Modified files: trunk/test/lib/envutil.rb Index: test/lib/envutil.rb =================================================================== --- test/lib/envutil.rb (revision 49794) +++ test/lib/envutil.rb (revision 49795) @@ -33,6 +33,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L33 def invoke_ruby(args, stdin_data = "", capture_stdout = false, capture_stderr = false, encoding: nil, timeout: 10, reprieve: 1, stdout_filter: nil, stderr_filter: nil, + signal: (/mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM), rubybin: EnvUtil.rubybin, **opt) in_c, in_p = IO.pipe @@ -67,7 +68,6 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L68 stdout = th_stdout.value if capture_stdout stderr = th_stderr.value if capture_stderr && capture_stderr != :merge_to_stdout else - signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM case pgroup = opt[:pgroup] when 0, true pgroup = -pid -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/