summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/process/fixtures/kill.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/process/fixtures/kill.rb')
-rw-r--r--spec/rubyspec/core/process/fixtures/kill.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/rubyspec/core/process/fixtures/kill.rb b/spec/rubyspec/core/process/fixtures/kill.rb
index 00b5223b90..0b88f8ee1f 100644
--- a/spec/rubyspec/core/process/fixtures/kill.rb
+++ b/spec/rubyspec/core/process/fixtures/kill.rb
@@ -2,7 +2,6 @@ require 'thread'
pid_file = ARGV.shift
scenario = ARGV.shift
-ruby_exe = ARGV.shift
# We must do this first otherwise there will be a race with the process that
# creates this process and the TERM signal below could go to that process
@@ -40,7 +39,7 @@ if scenario
end
code = "Process.kill(#{signal}, #{process})"
- system(*ruby_exe.split(' '), "-e", code)
+ system(ENV["RUBY_EXE"], *ENV["RUBY_FLAGS"].split(' '), "-e", code)
end
sleep 0.001 until mutex.locked? and $signaled