libcontainer: signalAllProcesses(): log warning when failing to thaw

I noticed this was the only place in this function where we didn't
handle errors on freezing/thawing. Logging as a warning, consistent
with the other cases.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-01-07 11:45:11 +01:00
parent 04b7b7d3c3
commit 039c47ab82
+3 -1
View File
@@ -484,7 +484,9 @@ func signalAllProcesses(m cgroups.Manager, s os.Signal) error {
}
pids, err := m.GetAllPids()
if err != nil {
m.Freeze(configs.Thawed)
if err := m.Freeze(configs.Thawed); err != nil {
logrus.Warn(err)
}
return err
}
for _, pid := range pids {