MCPcopy Create free account
hub / github.com/compozy/agh / waitProcess

Method waitProcess

internal/procutil/detached.go:90–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (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
105func closedDetachedProcessDone() <-chan struct{} {
106 done := make(chan struct{})

Callers 1

startWaitMethod · 0.95

Calls 2

attachCommandLogFunction · 0.85
WaitMethod · 0.65

Tested by

no test coverage detected