code: func (c *Cmd) SetExitStatus(status int, err error) {
  	c.Lock()
  	defer c.Unlock()
  
  	c.exitStatus = status
  	c.err = err
  
  	close(c.exitCh)
  }
docs: // SetExitStatus stores the exit status of the remote command as well as any
  // communicator related error. SetExitStatus then unblocks any pending calls
  // to Wait.
  // This should only be called by communicators executing the remote.Cmd.