summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-10-19 13:53:15 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-11-07 11:36:01 -0500
commitf714ee4fb14085c326ee5d56432781a01ffabbb0 (patch)
tree3aab520b3c711d11e54bfae8ada0641d365d6231 /libpod
parent48914d67aed53ad793d86c98a6a4e96cfefe7333 (diff)
downloadpodman-f714ee4fb14085c326ee5d56432781a01ffabbb0.tar.gz
podman-f714ee4fb14085c326ee5d56432781a01ffabbb0.tar.bz2
podman-f714ee4fb14085c326ee5d56432781a01ffabbb0.zip
Actually save changes from post-stop sync
After stopping containers, we run updateContainerStatus to sync our state with runc (pick up exit code, for example). Then we proceed to not save this to the database, requiring us to grab it again on the next sync. This should remove the need to read the exit file more than once. Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index d928c4aed..867d539be 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -679,7 +679,7 @@ func (c *Container) stop(timeout uint) error {
}
// Container should clean itself up
- return nil
+ return c.save()
}
// Internal, non-locking function to pause a container