Commit 95adfe93 by Serge Hallyn

cgfsng: print error when reaching 1000 failed cgroup creations

parent 235f1815
...@@ -951,8 +951,10 @@ static inline bool cgfsng_create(void *hdata) ...@@ -951,8 +951,10 @@ static inline bool cgfsng_create(void *hdata)
offset = cgname + len - 5; offset = cgname + len - 5;
again: again:
if (idx == 1000) if (idx == 1000) {
ERROR("Too many conflicting cgroup names");
goto out_free; goto out_free;
}
if (idx) if (idx)
snprintf(offset, 5, "-%d", idx); snprintf(offset, 5, "-%d", idx);
for (i = 0; d->hierarchies[i]; i++) { for (i = 0; d->hierarchies[i]; i++) {
......
Markdown is supported
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