Commit 8424f945 authored by Martin Mareš's avatar Martin Mareš
Browse files

Do not try to mount /sys/fs/cgroup

It makes a mess when somebody else is already managing the cgroups.
parent e89604ef
......@@ -26,19 +26,8 @@ cgroup_setup(const char *chier, const char *controllers)
if (access(chierdir, F_OK) >= 0)
return 0;
if (mount("none", cgroupfs, "tmpfs", 0, NULL) < 0) {
cgroup_perror(cgroupfs);
return -1;
}
if (mkdir(chierdir, 0777) < 0) {
cgroup_perror(chierdir);
return -1;
}
if (mount("none", chierdir, "cgroup", 0, controllers) < 0) {
cgroup_perror(chierdir);
return -1;
}
return 1;
cgroup_perror(chierdir);
return -1;
}
int
......
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