mirror of
https://github.com/troglobit/finit.git
synced 2026-10-06 15:50:12 +07:00
cgroup: 'init' is a reserved leaf group with Finit
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+5
-1
@@ -313,9 +313,13 @@ void cgroup_config(size_t num, struct cgroup cg[])
|
||||
|
||||
for (i = 0; i < num; i++) {
|
||||
char path[256];
|
||||
int leaf = 0;
|
||||
|
||||
if (!strcmp(cg[i].name, "init"))
|
||||
leaf = 1; /* reserved */
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s", FINIT_CGPATH, cg[i].name);
|
||||
group_init(path, 0, cg[i].cfg);
|
||||
group_init(path, leaf, cg[i].cfg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user