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
748166a3
Unverified
Commit
748166a3
authored
May 15, 2020
by
Christian Brauner
Committed by
GitHub
May 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3414 from Blub/get-cgroup-path-compat
improve LXC_CMD_GET_CGROUP compatibility
parents
6b641ce4
400d579e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
commands.c
src/lxc/commands.c
+14
-1
No files found.
src/lxc/commands.c
View file @
748166a3
...
@@ -509,8 +509,21 @@ static char *lxc_cmd_get_cgroup_path_do(const char *name, const char *lxcpath,
...
@@ -509,8 +509,21 @@ static char *lxc_cmd_get_cgroup_path_do(const char *name, const char *lxcpath,
if
(
ret
<
0
)
if
(
ret
<
0
)
return
NULL
;
return
NULL
;
if
(
ret
==
0
)
if
(
ret
==
0
)
{
if
(
command
==
LXC_CMD_GET_LIMITING_CGROUP
)
{
/*
* This may indicate that the container was started
* under an ealier version before
* `cgroup_advanced_isolation` as implemented, there
* it sees an unknown command and just closes the
* socket, sending us an EOF.
*/
return
lxc_cmd_get_cgroup_path_do
(
name
,
lxcpath
,
subsystem
,
LXC_CMD_GET_CGROUP
);
}
return
NULL
;
return
NULL
;
}
if
(
cmd
.
rsp
.
ret
<
0
||
cmd
.
rsp
.
datalen
<
0
)
if
(
cmd
.
rsp
.
ret
<
0
||
cmd
.
rsp
.
datalen
<
0
)
return
NULL
;
return
NULL
;
...
...
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