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
e4659536
Commit
e4659536
authored
Jan 13, 2011
by
Daniel Lezcano
Committed by
Daniel Lezcano
Jan 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clone_children path
This line is at the wrong place ... Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
03d56dff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgroup.c
src/lxc/cgroup.c
+2
-2
No files found.
src/lxc/cgroup.c
View file @
e4659536
...
@@ -235,6 +235,8 @@ int lxc_cgroup_create(const char *name, pid_t pid)
...
@@ -235,6 +235,8 @@ int lxc_cgroup_create(const char *name, pid_t pid)
return
cgroup_rename_nsgroup
(
cgmnt
,
cgname
,
pid
);
return
cgroup_rename_nsgroup
(
cgmnt
,
cgname
,
pid
);
}
}
snprintf
(
clonechild
,
MAXPATHLEN
,
"%s/cgroup.clone_children"
,
cgmnt
);
/* we check if the kernel has clone_children, at this point if there
/* we check if the kernel has clone_children, at this point if there
* no clone_children neither ns_cgroup, that means the cgroup is mounted
* no clone_children neither ns_cgroup, that means the cgroup is mounted
* without the ns_cgroup and it has not the compatibility flag
* without the ns_cgroup and it has not the compatibility flag
...
@@ -244,8 +246,6 @@ int lxc_cgroup_create(const char *name, pid_t pid)
...
@@ -244,8 +246,6 @@ int lxc_cgroup_create(const char *name, pid_t pid)
return
-
1
;
return
-
1
;
}
}
snprintf
(
clonechild
,
MAXPATHLEN
,
"%s/cgroup.clone_children"
,
cgmnt
);
/* we enable the clone_children flag of the cgroup */
/* we enable the clone_children flag of the cgroup */
if
(
cgroup_enable_clone_children
(
clonechild
))
{
if
(
cgroup_enable_clone_children
(
clonechild
))
{
SYSERROR
(
"failed to enable 'clone_children flag"
);
SYSERROR
(
"failed to enable 'clone_children flag"
);
...
...
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