From 0dc32472d75b54c8b70f55311c88502b07e591b5 Mon Sep 17 00:00:00 2001 From: eregon Date: Wed, 10 May 2017 14:17:58 +0000 Subject: [PATCH] Use #system directly with multiple arguments in Process#kill specs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/rubyspec/core/process/fixtures/kill.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/rubyspec/core/process/fixtures/kill.rb b/spec/rubyspec/core/process/fixtures/kill.rb index dfebc5b3c3..9f2d4f33a0 100644 --- a/spec/rubyspec/core/process/fixtures/kill.rb +++ b/spec/rubyspec/core/process/fixtures/kill.rb @@ -42,8 +42,8 @@ if scenario raise "unknown scenario: #{scenario.inspect}" end - cmd = %[#{ruby_exe} -e 'Process.kill(#{signal}, #{process})'] - Thread.new { system cmd }.join + code = "Process.kill(#{signal}, #{process})" + system(*ruby_exe.split(' '), "-e", code) end -sleep 0.1 until signaled +sleep 0.001 until signaled