()
| 79 | } |
| 80 | |
| 81 | func (p *DetachedProcess) startWait() { |
| 82 | p.waitOnce.Do(func() { |
| 83 | go func() { |
| 84 | p.waitErr = p.waitProcess() |
| 85 | close(p.done) |
| 86 | }() |
| 87 | }) |
| 88 | } |
| 89 | |
| 90 | func (p *DetachedProcess) waitProcess() error { |
| 91 | if p == nil || p.process == nil { |
no test coverage detected