| 153 | } |
| 154 | |
| 155 | type otherProcess struct { |
| 156 | pty *os.File |
| 157 | cmd *exec.Cmd |
| 158 | |
| 159 | // cmdDone protects access to cmdErr: anything reading cmdErr should read from cmdDone first. |
| 160 | cmdDone chan any |
| 161 | cmdErr error |
| 162 | } |
| 163 | |
| 164 | func (p *otherProcess) Wait() error { |
| 165 | <-p.cmdDone |
nothing calls this directly
no outgoing calls
no test coverage detected