Module: Ruptr::CaptureOutput::ForkHandler

Included in:
Ruptr::CaptureOutput
Defined in:
lib/ruptr/capture_output.rb

Instance Method Summary collapse

Instance Method Details

#_forkObject

NOTE: This assumes that the child will exit and the parent unwinds.



102
# File 'lib/ruptr/capture_output.rb', line 102

def _fork = super.tap { |pid| CaptureOutput.reset! if pid.nil? || pid.zero? }