Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
compctl-kam
Commits
8424f945
Commit
8424f945
authored
Oct 17, 2016
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
cgroup.c
View file @
8424f945
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment