class RSpec::Core::Bisect::ForkRunner::RunDispatcher
@private
Public Class Methods
# File rspec-core/lib/rspec/core/bisect/fork_runner.rb, line 80 def initialize(runner, channel) @runner = runner @channel = channel @spec_output = StringIO.new runner.configuration.tap do |c| c.reset_reporter c.output_stream = @spec_output c.error_stream = @spec_output end end
Public Instance Methods
# File rspec-core/lib/rspec/core/bisect/fork_runner.rb, line 93 def dispatch_specs(run_descriptor) pid = fork { run_specs(run_descriptor) } # We don't use Process.waitpid here as it was causing bisects to # block due to the file descriptor limit on OSX / Linux. We need # to detach the process to avoid having zombie processes # consuming slots in the kernel process table during bisect runs. Process.detach(pid) end