Class: Mutant::Isolation::Fork::Child Private

Inherits:
Object
  • Object
show all
Includes:
Procto, Unparser::Adamantium
Defined in:
lib/mutant/isolation/fork.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

rubocop:enable Metrics/ClassLength

Instance Method Summary collapse

Methods included from Procto

included

Instance Method Details

#callundefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Handle child process

Returns:

  • (undefined)


217
218
219
220
221
222
# File 'lib/mutant/isolation/fork.rb', line 217

def call
  world.stderr.reopen(log_pipe)
  world.stdout.reopen(log_pipe)
  result_pipe.syswrite(world.marshal.dump(block.call))
  result_pipe.close
end