mirror of
https://github.com/containers/podman.git
synced 2025-09-11 00:54:42 +08:00
Revert "exec: fix error code when conmon fails"
This reverts commit 4632b81c81a73025a960e339f40bc805f8a6c70a. We are reverting #5373 as well, which lays the foundation for this commit, so it has to go as well. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -340,12 +340,6 @@ func (c *Container) Exec(tty, privileged bool, env map[string]string, cmd []stri
|
||||
if lastErr != nil {
|
||||
logrus.Errorf(lastErr.Error())
|
||||
}
|
||||
// ErrorConmonRead is a bogus value set by podman to indicate reading a value from
|
||||
// conmon failed. Since it is specifically not a valid exit code, we should set
|
||||
// a generic error here
|
||||
if exitCodeData.data == define.ErrorConmonRead {
|
||||
exitCodeData.data = define.ExecErrorCodeGeneric
|
||||
}
|
||||
lastErr = errors.Wrapf(define.ErrOCIRuntime, "non zero exit code: %d", exitCodeData.data)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user