code: func (p *Process) waitOnProcess() (*os.ProcessState, error) {
  	if p.command == nil || p.command.Process == nil {
  		return &os.ProcessState{}, nil
  	}
  
  	return p.command.Process.Wait()
  }
docs: // WaitOnCommand waits until the command completes