Done closes after the detached child has been reaped.
()
| 62 | |
| 63 | // Done closes after the detached child has been reaped. |
| 64 | func (p *DetachedProcess) Done() <-chan struct{} { |
| 65 | if p == nil || p.process == nil { |
| 66 | return closedDetachedProcessDone() |
| 67 | } |
| 68 | p.startWait() |
| 69 | return p.done |
| 70 | } |
| 71 | |
| 72 | func newDetachedProcess(process *os.Process, logPath string, logOffset int64) *DetachedProcess { |
| 73 | return &DetachedProcess{ |
nothing calls this directly
no test coverage detected