Module: Mutineer::OutputFilter::ExecHook
- Defined in:
- lib/mutineer/output_filter.rb
Overview
Stops a fork child's copier before exec. The copier thread and its read end do not survive exec, so the program would write to a pipe nobody reads. Kernel#exec, Kernel.exec, and Process.exec are separate, so all three are wrapped.
Instance Method Summary collapse
-
#exec(*args) ⇒ void
Does not return when exec succeeds.
Instance Method Details
#exec(*args) ⇒ void
This method returns an undefined value.
Returns does not return when exec succeeds.
49 50 51 52 |
# File 'lib/mutineer/output_filter.rb', line 49 def exec(*args) OutputFilter.before_exec(args) super end |