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
0f1caf26
Unverified
Commit
0f1caf26
authored
Mar 17, 2021
by
Stéphane Graber
Committed by
GitHub
Mar 17, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3708 from brauner/2021-03-17/fixes
cgroups: ignore unused controllers
parents
f6276497
6159413b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
cgfsng.c
src/lxc/cgroups/cgfsng.c
+11
-3
No files found.
src/lxc/cgroups/cgfsng.c
View file @
0f1caf26
...
...
@@ -2363,9 +2363,17 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops,
}
path
=
lxc_cmd_get_cgroup_path
(
name
,
lxcpath
,
h
->
controllers
[
0
]);
/* not running */
if
(
!
path
)
return
false
;
if
(
!
path
)
{
/*
* Someone might have created a name=<controller>
* controller after the container has started and so
* the container doesn't make use of this controller.
*
* Link: https://github.com/lxc/lxd/issues/8577
*/
TRACE
(
"Skipping unused %s controller"
,
maybe_empty
(
h
->
controllers
[
0
]));
continue
;
}
fullpath
=
build_full_cgpath_from_monitorpath
(
h
,
path
,
"cgroup.procs"
);
ret
=
lxc_write_to_file
(
fullpath
,
pidstr
,
len
,
false
,
0666
);
...
...
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