mirror of
https://github.com/containers/podman.git
synced 2025-05-31 07:27:13 +08:00
Make CGroups cleanup optional on whether they exist
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #981 Approved by: baude
This commit is contained in:
@ -570,14 +570,20 @@ func (r *Runtime) refresh(alivePath string) error {
|
||||
return errors.Wrapf(err, "error retrieving all pods from state")
|
||||
}
|
||||
for _, ctr := range ctrs {
|
||||
ctr.lock.Lock()
|
||||
if err := ctr.refresh(); err != nil {
|
||||
ctr.lock.Unlock()
|
||||
return err
|
||||
}
|
||||
ctr.lock.Unlock()
|
||||
}
|
||||
for _, pod := range pods {
|
||||
pod.lock.Lock()
|
||||
if err := pod.refresh(); err != nil {
|
||||
pod.lock.Unlock()
|
||||
return err
|
||||
}
|
||||
pod.lock.Unlock()
|
||||
}
|
||||
|
||||
// Create a file indicating the runtime is alive and ready
|
||||
|
Reference in New Issue
Block a user