summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-25 13:17:12 +0100
committerGitHub <noreply@github.com>2020-02-25 13:17:12 +0100
commit6babc9f20ca9e3633da1792a31d0391bde6201b6 (patch)
tree9627ab8a289952c5902ef45a09fab6cfbd143954 /cmd
parent8a30759b6b7f73c76c90e0931e6cf1ca3d94ee61 (diff)
parent4004f646cd7a99f86b2098587c256071a89a4dc7 (diff)
downloadpodman-6babc9f20ca9e3633da1792a31d0391bde6201b6.tar.gz
podman-6babc9f20ca9e3633da1792a31d0391bde6201b6.tar.bz2
podman-6babc9f20ca9e3633da1792a31d0391bde6201b6.zip
Merge pull request #5305 from mheon/check_for_common_deadlocks
Add basic deadlock detection for container start/remove
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/rm.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/rm.go b/cmd/podman/rm.go
index e69565e95..644b0ef76 100644
--- a/cmd/podman/rm.go
+++ b/cmd/podman/rm.go
@@ -4,8 +4,10 @@ import (
"fmt"
"github.com/containers/libpod/cmd/podman/cliconfig"
+ "github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/adapter"
"github.com/pkg/errors"
+ "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
@@ -77,6 +79,9 @@ func rmCmd(c *cliconfig.RmValues) error {
if len(failures) > 0 {
for _, err := range failures {
+ if errors.Cause(err) == define.ErrWillDeadlock {
+ logrus.Errorf("Potential deadlock detected - please run 'podman system renumber' to resolve")
+ }
exitCode = setExitCode(err)
}
}