mirror of https://github.com/containers/podman.git
oci: cleanup process status
I've seen a runc zombie process hanging around, it is caused by not cleaning up the "$OCI status" process. Also adjust another location that has the same issue. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
58a26ac9dc
commit
fc89065a80
|
@ -378,6 +378,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
|
|||
childPipe.Close()
|
||||
return err
|
||||
}
|
||||
defer cmd.Wait()
|
||||
|
||||
// We don't need childPipe on the parent side
|
||||
childPipe.Close()
|
||||
|
@ -478,6 +479,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error {
|
|||
}
|
||||
return errors.Wrapf(err, "error getting container %s state. stderr/out: %s", ctr.ID(), out)
|
||||
}
|
||||
defer cmd.Wait()
|
||||
|
||||
errPipe.Close()
|
||||
out, err := ioutil.ReadAll(outPipe)
|
||||
|
|
Loading…
Reference in New Issue