fix(deps): update module github.com/opencontainers/cgroups to v0.0.2

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-04-28 18:19:46 +00:00
committed by GitHub
parent a2d542df37
commit 6c9f378a9b
15 changed files with 141 additions and 78 deletions

View File

@ -231,7 +231,7 @@ func rmdir(path string, retry bool) error {
again:
err := unix.Rmdir(path)
switch err { // nolint:errorlint // unix errors are bare
switch err {
case nil, unix.ENOENT:
return nil
case unix.EINTR:
@ -395,7 +395,7 @@ func WriteCgroupProc(dir string, pid int) error {
}
defer file.Close()
for i := 0; i < 5; i++ {
for range 5 {
_, err = file.WriteString(strconv.Itoa(pid))
if err == nil {
return nil