From 039c47ab82504a0c3e2f3d4f2b91062f3024dd88 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 7 Jan 2021 11:45:11 +0100 Subject: [PATCH] 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 --- libcontainer/init_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcontainer/init_linux.go b/libcontainer/init_linux.go index bb8ff0b5266..70cde7a92a2 100644 --- a/libcontainer/init_linux.go +++ b/libcontainer/init_linux.go @@ -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 {