Commit 7e9ff90c authored by Mark A. Grondona's avatar Mark A. Grondona Committed by Morris Jette
Browse files

Do not return error from xcgroup_delete if cgroup already gone

Some cgroup code would retry continuously if somehow a cgroup
didn't exist when xcgroup_delete() was called (See for instance
proctrack/cgroup's slurm_container_plugin_wait()). To fix this
for all callers, return SUCCESS from xcgroup_delete() if rmdir(2)
return ENOENT, since the cgroup is already deleted.
parent 24d2308f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment