module Specjour::QuietFork
  extend self
  attr_reader :pid

  def self.fork(&block)
    @pid = Kernel.fork do
      $stdout = StringIO.new
      block.call
      exit!
    end
  end
end

module Specjour::QuietFork
  extend self
  attr_reader :pid

  def self.fork(&block)
    @pid = Kernel.fork do
      at_exit { exit! }
      $stdout = StringIO.new
      block.call
    end
  end
end

Fix another inheriting exit handler
Fix another inheriting exit handler
