Module: Henitai::Integration::ChildBootstrap
- Defined in:
- lib/henitai/integration/child_bootstrap.rb
Overview
The first thing a forked mutant child does, before any test-framework work begins.
Extracted from the fork block so the sequence is named and unit-testable without forking, and so both the RSpec and Minitest paths -- which share MutantRunSupport#spawn_mutant -- get identical treatment.
Class Method Summary collapse
Class Method Details
.after_fork!(parent_pid:) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/henitai/integration/child_bootstrap.rb', line 17 def self.after_fork!(parent_pid:) # First, so that even a crash later in this method releases the # reports-directory lock rather than pinning it with an inherited fd. InheritedFdRegistry.close_all! Process.setpgid(0, 0) OrphanWatchdog.start(parent_pid:) nil end |