class Gem::TestCase

def wait_for_child_process_to_exit

swallows the Errno::ECHILD error).
that process to exit (or if it's already been reaped, or never happened,
In case we're building docs in a background process, this method waits for
def wait_for_child_process_to_exit
  Process.wait if Process.respond_to?(:fork)
rescue Errno::ECHILD
end