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
838d1556
Unverified
Commit
838d1556
authored
Feb 17, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: delegate than move into the target cgroup
This is a way more sensible model. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
95ab26af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
start.c
src/lxc/start.c
+8
-8
No files found.
src/lxc/start.c
View file @
838d1556
...
@@ -1806,13 +1806,13 @@ static int lxc_spawn(struct lxc_handler *handler)
...
@@ -1806,13 +1806,13 @@ static int lxc_spawn(struct lxc_handler *handler)
goto
out_delete_net
;
goto
out_delete_net
;
}
}
if
(
!
cgroup_ops
->
payload_
enter
(
cgroup_ops
,
handler
))
{
if
(
!
cgroup_ops
->
payload_
delegate_controllers
(
cgroup_ops
))
{
ERROR
(
"Failed to
enter cgroups
"
);
ERROR
(
"Failed to
delegate controllers to payload cgroup
"
);
goto
out_delete_net
;
goto
out_delete_net
;
}
}
if
(
!
cgroup_ops
->
payload_
delegate_controllers
(
cgroup_ops
))
{
if
(
!
cgroup_ops
->
payload_
enter
(
cgroup_ops
,
handler
))
{
ERROR
(
"Failed to
delegate controllers to payload cgroup
"
);
ERROR
(
"Failed to
enter cgroups
"
);
goto
out_delete_net
;
goto
out_delete_net
;
}
}
...
@@ -2027,14 +2027,14 @@ int __lxc_start(struct lxc_handler *handler, struct lxc_operations *ops,
...
@@ -2027,14 +2027,14 @@ int __lxc_start(struct lxc_handler *handler, struct lxc_operations *ops,
goto
out_abort
;
goto
out_abort
;
}
}
if
(
!
cgroup_ops
->
monitor_
enter
(
cgroup_ops
,
handler
))
{
if
(
!
cgroup_ops
->
monitor_
delegate_controllers
(
cgroup_ops
))
{
ERROR
(
"Failed to
enter
monitor cgroup"
);
ERROR
(
"Failed to
delegate controllers to
monitor cgroup"
);
ret
=
-
1
;
ret
=
-
1
;
goto
out_abort
;
goto
out_abort
;
}
}
if
(
!
cgroup_ops
->
monitor_
delegate_controllers
(
cgroup_ops
))
{
if
(
!
cgroup_ops
->
monitor_
enter
(
cgroup_ops
,
handler
))
{
ERROR
(
"Failed to
delegate controllers to
monitor cgroup"
);
ERROR
(
"Failed to
enter
monitor cgroup"
);
ret
=
-
1
;
ret
=
-
1
;
goto
out_abort
;
goto
out_abort
;
}
}
...
...
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