summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-07-13 10:24:17 -0400
committerMatthew Heon <mheon@redhat.com>2018-07-13 14:28:41 -0400
commit028374b99e5c9dd23236a10495ea0aebe819b51f (patch)
treebcae62cde75f78ce639b5925f1a485dec98d3218 /libpod/oci.go
parent14a6d51a8432fc0c3324fec02e8729d3032f2af2 (diff)
downloadpodman-028374b99e5c9dd23236a10495ea0aebe819b51f.tar.gz
podman-028374b99e5c9dd23236a10495ea0aebe819b51f.tar.bz2
podman-028374b99e5c9dd23236a10495ea0aebe819b51f.zip
Record whether the container has exited
Use this to supplement exit codes returned from containers, to make sure we know when exit codes are invalid (as the container has not yet exited) Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index c0478b3b6..3eaf159e7 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -450,6 +450,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error {
ctr.state.OOMKilled = true
}
+ ctr.state.Exited = true
}
return nil