mirror of
https://github.com/containers/podman.git
synced 2025-09-18 15:54:49 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user