Skip to content

Commit 96ec217

Browse files
Merge pull request #1943 from giuseppe/allow-to-signal-paused-containers
kill: allow to signal paused containers
2 parents ff38d6e + 07d1ad4 commit 96ec217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/container_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func (c *linuxContainer) Signal(s os.Signal, all bool) error {
382382
return err
383383
}
384384
// to avoid a PID reuse attack
385-
if status == Running || status == Created {
385+
if status == Running || status == Created || status == Paused {
386386
if err := c.initProcess.signal(s); err != nil {
387387
return newSystemErrorWithCause(err, "signaling init process")
388388
}

0 commit comments

Comments
 (0)