diff --git a/runtime/process.go b/runtime/process.go index 9915b7d..0f10aad 100644 --- a/runtime/process.go +++ b/runtime/process.go @@ -211,7 +211,11 @@ func (p *process) Stdio() Stdio { // Close closes any open files and/or resouces on the process func (p *process) Close() error { - return p.exitPipe.Close() + err := p.exitPipe.Close() + if cerr := p.controlPipe.Close(); err == nil { + err = cerr + } + return err } func (p *process) State() State {