mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-16 12:31:51 +08:00
kill: allow to signal paused containers
regression introduced by 87a188996e
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -382,7 +382,7 @@ func (c *linuxContainer) Signal(s os.Signal, all bool) error {
|
||||
return err
|
||||
}
|
||||
// to avoid a PID reuse attack
|
||||
if status == Running || status == Created {
|
||||
if status == Running || status == Created || status == Paused {
|
||||
if err := c.initProcess.signal(s); err != nil {
|
||||
return newSystemErrorWithCause(err, "signaling init process")
|
||||
}
|
||||
|
Reference in New Issue
Block a user