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
d39e9d8b
Unverified
Commit
d39e9d8b
authored
Sep 10, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: add monitor_cgroup member
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
bb221ad1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-0
cgroup.c
src/lxc/cgroups/cgroup.c
+1
-0
cgroup.h
src/lxc/cgroups/cgroup.h
+1
-0
No files found.
src/lxc/cgroups/cgfsng.c
View file @
d39e9d8b
...
@@ -2569,6 +2569,7 @@ __cgfsng_ops__ static bool cgfsng_data_init(struct cgroup_ops *ops)
...
@@ -2569,6 +2569,7 @@ __cgfsng_ops__ static bool cgfsng_data_init(struct cgroup_ops *ops)
return
false
;
return
false
;
}
}
ops
->
cgroup_pattern
=
must_copy_string
(
cgroup_pattern
);
ops
->
cgroup_pattern
=
must_copy_string
(
cgroup_pattern
);
ops
->
monitor_pattern
=
must_copy_string
(
"lxc.monitor"
);
return
true
;
return
true
;
}
}
...
...
src/lxc/cgroups/cgroup.c
View file @
d39e9d8b
...
@@ -76,6 +76,7 @@ void cgroup_exit(struct cgroup_ops *ops)
...
@@ -76,6 +76,7 @@ void cgroup_exit(struct cgroup_ops *ops)
free
(
ops
->
cgroup_pattern
);
free
(
ops
->
cgroup_pattern
);
free
(
ops
->
container_cgroup
);
free
(
ops
->
container_cgroup
);
free
(
ops
->
monitor_pattern
);
for
(
it
=
ops
->
hierarchies
;
it
&&
*
it
;
it
++
)
{
for
(
it
=
ops
->
hierarchies
;
it
&&
*
it
;
it
++
)
{
char
**
ctrlr
;
char
**
ctrlr
;
...
...
src/lxc/cgroups/cgroup.h
View file @
d39e9d8b
...
@@ -92,6 +92,7 @@ struct cgroup_ops {
...
@@ -92,6 +92,7 @@ struct cgroup_ops {
char
**
cgroup_use
;
char
**
cgroup_use
;
char
*
cgroup_pattern
;
char
*
cgroup_pattern
;
char
*
container_cgroup
;
char
*
container_cgroup
;
char
*
monitor_pattern
;
/* @hierarchies
/* @hierarchies
* - A NULL-terminated array of struct hierarchy, one per legacy
* - A NULL-terminated array of struct hierarchy, one per legacy
...
...
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