()
| 88 | } |
| 89 | |
| 90 | func (p *DetachedProcess) waitProcess() error { |
| 91 | if p == nil || p.process == nil { |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | state, err := p.process.Wait() |
| 96 | if err == nil { |
| 97 | if state == nil || state.Success() { |
| 98 | return nil |
| 99 | } |
| 100 | err = &exec.ExitError{ProcessState: state} |
| 101 | } |
| 102 | return attachCommandLog(err, p.logPath, p.logOffset) |
| 103 | } |
| 104 | |
| 105 | func closedDetachedProcessDone() <-chan struct{} { |
| 106 | done := make(chan struct{}) |
no test coverage detected