diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/rubyspec/core/process/fixtures/kill.rb | 6 |
1 files 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 |