summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-30 09:35:51 -0400
committerGitHub <noreply@github.com>2022-08-30 09:35:51 -0400
commit01c76691154eb0569b76d91c673153897e2f7653 (patch)
treeed81d9583ec06c232a17a18bd5badcbd14518e69 /libpod
parent754ec89a8a185d308ca5ed08afaf34d6cbda08da (diff)
parent8ed9354f4c9a084cb296bf4d6585ff19bd33f25f (diff)
downloadpodman-01c76691154eb0569b76d91c673153897e2f7653.tar.gz
podman-01c76691154eb0569b76d91c673153897e2f7653.tar.bz2
podman-01c76691154eb0569b76d91c673153897e2f7653.zip
Merge pull request #15521 from vrothberg/v4.2-fix-15492
[v4.2] libpod: UpdateContainerStatus: do not wait for container
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci_conmon_linux.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index cb76de72c..c8378e124 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -337,15 +337,6 @@ func (r *ConmonOCIRuntime) UpdateContainerStatus(ctr *Container) error {
ctr.ID(), state.Status, define.ErrInternal)
}
- // Only grab exit status if we were not already stopped
- // If we were, it should already be in the database
- if ctr.state.State == define.ContainerStateStopped && oldState != define.ContainerStateStopped {
- if _, err := ctr.Wait(context.Background()); err != nil {
- logrus.Errorf("Waiting for container %s to exit: %v", ctr.ID(), err)
- }
- return nil
- }
-
// Handle ContainerStateStopping - keep it unless the container
// transitioned to no longer running.
if oldState == define.ContainerStateStopping && (ctr.state.State == define.ContainerStatePaused || ctr.state.State == define.ContainerStateRunning) {