Module: Ruptr::CaptureOutput::ForkHandler
- Included in:
- Ruptr::CaptureOutput
- Defined in:
- lib/ruptr/capture_output.rb
Instance Method Summary collapse
-
#_fork ⇒ Object
NOTE: This assumes that the child will exit and the parent unwinds.
Instance Method Details
#_fork ⇒ Object
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? } |