Skip to content

Commit

Permalink
Merge pull request #2722 from thaJeztah/warn_freeze
Browse files Browse the repository at this point in the history
libcontainer: signalAllProcesses(): log warning when failing to thaw
  • Loading branch information
Mrunal Patel committed Jan 14, 2021
2 parents 364ada6 + 039c47a commit dbbe7e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libcontainer/init_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,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 {
Expand Down

0 comments on commit dbbe7e6

Please sign in to comment.