Merge pull request #5536 from giuseppe/avoid-conmon-zombie

podman: avoid conmon zombie on exec
This commit is contained in:
OpenShift Merge Robot 2020-03-18 15:10:41 +01:00 committed by GitHub
commit f08b992f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -774,6 +774,10 @@ func (r *ConmonOCIRuntime) ExecContainer(c *Container, sessionID string, options
}()
attachToExecCalled = true
if err := execCmd.Wait(); err != nil {
return -1, nil, errors.Wrapf(err, "cannot run conmon")
}
pid, err := readConmonPipeData(parentSyncPipe, ociLog)
return pid, attachChan, err