Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d30ec4cb
Commit
d30ec4cb
authored
Mar 07, 2016
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment fixups
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
c0888dfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
cgfsng.c
src/lxc/cgfsng.c
+5
-1
No files found.
src/lxc/cgfsng.c
View file @
d30ec4cb
...
@@ -648,6 +648,10 @@ static bool parse_hierarchies(struct cgfsng_handler_data *d)
...
@@ -648,6 +648,10 @@ static bool parse_hierarchies(struct cgfsng_handler_data *d)
char
**
klist
=
NULL
,
**
nlist
=
NULL
;
char
**
klist
=
NULL
,
**
nlist
=
NULL
;
size_t
len
=
0
;
size_t
len
=
0
;
/*
* Root spawned containers escape the current cgroup, so use init's
* cgroups as our base in that case.
*/
if
(
geteuid
())
if
(
geteuid
())
basecginfo
=
read_file
(
"/proc/self/cgroup"
);
basecginfo
=
read_file
(
"/proc/self/cgroup"
);
else
else
...
@@ -922,7 +926,7 @@ static void remove_path_for_hierarchy(struct hierarchy *h, char *cgname)
...
@@ -922,7 +926,7 @@ static void remove_path_for_hierarchy(struct hierarchy *h, char *cgname)
}
}
/*
/*
* Try to create the same cgrou
p
in all hierarchies.
* Try to create the same cgrou
p
in all hierarchies.
* Start with cgroup_pattern; next cgroup_pattern-1, -2, ..., -999
* Start with cgroup_pattern; next cgroup_pattern-1, -2, ..., -999
*/
*/
static
inline
bool
cgfsng_create
(
void
*
hdata
)
static
inline
bool
cgfsng_create
(
void
*
hdata
)
...
...
Write
Preview
Markdown
is supported
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