summaryrefslogtreecommitdiff
path: root/libpod/container_api.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2022-05-23 13:27:04 -0400
committerMatthew Heon <mheon@redhat.com>2022-05-25 13:28:04 -0400
commit9fcfea7643b243a3ad691daaf07fe358f85491cb (patch)
tree394d7d646b73b8b1dee8683d2485adfe7ade0203 /libpod/container_api.go
parent819e5bcb943c6f604fdc65be1c0387055e0a9f20 (diff)
downloadpodman-9fcfea7643b243a3ad691daaf07fe358f85491cb.tar.gz
podman-9fcfea7643b243a3ad691daaf07fe358f85491cb.tar.bz2
podman-9fcfea7643b243a3ad691daaf07fe358f85491cb.zip
First batch of resolutions to FIXMEs
Most of these are no longer relevant, just drop the comments. Most notable change: allow `podman kill` on paused containers. Works just fine when I test it. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/container_api.go')
-rw-r--r--libpod/container_api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go
index a6fcf709d..0fab36bdc 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -202,9 +202,8 @@ func (c *Container) Kill(signal uint) error {
}
}
- // TODO: Is killing a paused container OK?
switch c.state.State {
- case define.ContainerStateRunning, define.ContainerStateStopping:
+ case define.ContainerStateRunning, define.ContainerStateStopping, define.ContainerStatePaused:
// Note that killing containers in "stopping" state is okay.
// In that state, the Podman is waiting for the runtime to
// stop the container and if that is taking too long, a user