class RailsApiBenchmark::Subprocess

Public Class Methods

kill_all() click to toggle source
# File lib/rails_api_benchmark/subprocess.rb, line 7
def self.kill_all
  # Tried things, didn't work. This kills evrything
  Process.kill('INT', -Process.getpgrp)
end
new(cmd, env) click to toggle source
# File lib/rails_api_benchmark/subprocess.rb, line 12
def initialize(cmd, env)
  Process.spawn(env, cmd)
end