errno is used after success
here
|
ret = rmdir_all (cgroup_path); |
|
if (ret < 0) |
|
{ |
|
if (retry_count >= max_attempts) |
|
return crun_make_error (err, errno, "cannot delete path `%s`", cgroup_path); |
and here
|
ret = rmdir_all (cgroup_path); |
|
if (ret < 0) |
|
{ |
|
if (retry_count >= max_attempts) |
|
return crun_make_error (err, errno, "cannot destroy subsystem `%s` at path `%s`", subsystem, cgroup_path); |
The successful call could be close() here
|
TEMP_FAILURE_RETRY (close (dfd)); |
|
return -1; |
errnois used after successhere
crun/src/libcrun/cgroup-utils.c
Lines 514 to 518 in d0c1224
and here
crun/src/libcrun/cgroup-utils.c
Lines 564 to 568 in d0c1224
The successful call could be
close()herecrun/src/libcrun/cgroup-utils.c
Lines 350 to 351 in d0c1224