summaryrefslogtreecommitdiffstats
path: root/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'api.c')
-rw-r--r--api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/api.c b/api.c
index a6918a8..56d9af8 100644
--- a/api.c
+++ b/api.c
@@ -691,8 +691,13 @@ base_open_err:
cgroup->controller[i]->name))
continue;
error = rmdir(path);
+ if (error < 0 && errno == ENOENT)
+ error = 0;
}
}
+ if (error)
+ return ECGOTHER;
+
return error;
}