Skip to content

Commit

Permalink
increase the retry times from 5 to 10 when removing cgroup paths
Browse files Browse the repository at this point in the history
Signed-off-by: lifubang <[email protected]>
  • Loading branch information
lifubang committed Oct 10, 2023
1 parent 1971c72 commit fb68cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/cgroups/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func RemovePath(path string) error {
// If after all there are not removed cgroups - appropriate error will be
// returned.
func RemovePaths(paths map[string]string) (err error) {
const retries = 5
const retries = 10
delay := 10 * time.Millisecond
for i := 0; i < retries; i++ {
if i != 0 {
Expand Down

0 comments on commit fb68cdd

Please sign in to comment.