kill: allow to signal paused containers
regression introduced by 87a188996e
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
4932620b62
commit
07d1ad44c8
|
@ -382,7 +382,7 @@ func (c *linuxContainer) Signal(s os.Signal, all bool) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// to avoid a PID reuse attack
|
// 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 {
|
if err := c.initProcess.signal(s); err != nil {
|
||||||
return newSystemErrorWithCause(err, "signaling init process")
|
return newSystemErrorWithCause(err, "signaling init process")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue