summaryrefslogtreecommitdiff
path: root/libpod/oci_conmon_linux.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-11 13:31:39 +0000
committerGitHub <noreply@github.com>2022-07-11 13:31:39 +0000
commitea2c31c98893c6e9e907bf3661d4456c886575bd (patch)
tree105eb331e91d038422cbdcc82bd5b6f981ee33b6 /libpod/oci_conmon_linux.go
parent0af75a74d27c1d37009ba49f7fce11ff188954eb (diff)
parent3bb4cf8ee2ca4d2b5fcd16da95a6ebd60b9ed18b (diff)
downloadpodman-ea2c31c98893c6e9e907bf3661d4456c886575bd.tar.gz
podman-ea2c31c98893c6e9e907bf3661d4456c886575bd.tar.bz2
podman-ea2c31c98893c6e9e907bf3661d4456c886575bd.zip
Merge pull request #14874 from vrothberg/fix-14859
exit code improvements
Diffstat (limited to 'libpod/oci_conmon_linux.go')
-rw-r--r--libpod/oci_conmon_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index 0cdfe90e9..121e750f4 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -303,7 +303,7 @@ func (r *ConmonOCIRuntime) UpdateContainerStatus(ctr *Container) error {
ctr.state.ExitCode = -1
ctr.state.FinishedTime = time.Now()
ctr.state.State = define.ContainerStateExited
- return nil
+ return ctr.runtime.state.AddContainerExitCode(ctr.ID(), ctr.state.ExitCode)
}
return fmt.Errorf("error getting container %s state. stderr/out: %s: %w", ctr.ID(), out, err)
}