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

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
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.

Parent

Instance Method Summary collapse

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

Parameters:

  • reader (IO)
  • writer (IO)

Returns:

  • (undefined)


104
105
106
107
108
109
# File 'lib/mutant/isolation/fork.rb', line 104

def call
  reader.close
  writer.binmode
  writer.syswrite(marshal.dump(result(&block)))
  writer.close
end