kill: allow to signal paused containers

regression introduced by 87a188996e

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2018-11-30 23:35:45 +01:00
parent 4932620b62
commit 07d1ad44c8
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
1 changed files with 1 additions and 1 deletions

View File

@ -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")
} }