class POSIX::Spawn::Child

def waitpid(pid)

Returns the Process::Status object obtained by reaping the process.

Wait for the child process to exit
def waitpid(pid)
  ::Process::waitpid(pid)
  $?
end