mirror of
https://github.com/containers/podman.git
synced 2025-07-02 00:30:00 +08:00
Merge pull request #5536 from giuseppe/avoid-conmon-zombie
podman: avoid conmon zombie on exec
This commit is contained in:
@ -774,6 +774,10 @@ func (r *ConmonOCIRuntime) ExecContainer(c *Container, sessionID string, options
|
|||||||
}()
|
}()
|
||||||
attachToExecCalled = true
|
attachToExecCalled = true
|
||||||
|
|
||||||
|
if err := execCmd.Wait(); err != nil {
|
||||||
|
return -1, nil, errors.Wrapf(err, "cannot run conmon")
|
||||||
|
}
|
||||||
|
|
||||||
pid, err := readConmonPipeData(parentSyncPipe, ociLog)
|
pid, err := readConmonPipeData(parentSyncPipe, ociLog)
|
||||||
|
|
||||||
return pid, attachChan, err
|
return pid, attachChan, err
|
||||||
|
Reference in New Issue
Block a user