class Parallel::ForkManager::ProcessInterface::Instance

A Parallel::ProcessInterface::Instance is something we can delegate to.

Public Instance Methods

child_status() click to toggle source

@return [Process::Status] the child's process status.

# File lib/parallel/forkmanager/process_interface.rb, line 45
def child_status
  $CHILD_STATUS
end
fork(*args, &block) click to toggle source

Calls Kernel.fork and returns its return value.

# File lib/parallel/forkmanager/process_interface.rb, line 33
def fork(*args, &block)
  Kernel.fork(*args, &block)
end
waitpid(*args) click to toggle source

Calls Process.waitpid and returns its return value.

# File lib/parallel/forkmanager/process_interface.rb, line 39
def waitpid(*args)
  Process.waitpid(*args)
end