summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-07-13 16:35:05 -0400
committerGitHub <noreply@github.com>2018-07-13 16:35:05 -0400
commit4729fd425588e17eff4f575d433f1075d4e27bb4 (patch)
treee7727035759b5c7aa08a745a2f87ae0fd4e546af /libpod/container_internal.go
parenta689639a6502bab3f49b853bc2983c1b44363b2f (diff)
parent259136c36c89cb32e28edfe8b5d7a3c1082fad5b (diff)
downloadpodman-4729fd425588e17eff4f575d433f1075d4e27bb4.tar.gz
podman-4729fd425588e17eff4f575d433f1075d4e27bb4.tar.bz2
podman-4729fd425588e17eff4f575d433f1075d4e27bb4.zip
Merge pull request #1089 from mheon/add_exited
Record whether the container has exited
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 905402c47..010d01315 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -586,6 +586,8 @@ func (c *Container) reinit(ctx context.Context) error {
// Set and save now to make sure that, if the init() below fails
// we still have a valid state
c.state.State = ContainerStateConfigured
+ c.state.ExitCode = 0
+ c.state.Exited = false
if err := c.save(); err != nil {
return err
}