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
accd6291
Unverified
Commit
accd6291
authored
Feb 10, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: log container process entering
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
4691665b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+2
-0
No files found.
src/lxc/cgroups/cgfsng.c
View file @
accd6291
...
@@ -1538,6 +1538,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
...
@@ -1538,6 +1538,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
ret
=
lxc_writeat
(
h
->
cgfd_con
,
"cgroup.procs"
,
pidstr
,
len
);
ret
=
lxc_writeat
(
h
->
cgfd_con
,
"cgroup.procs"
,
pidstr
,
len
);
if
(
ret
!=
0
)
if
(
ret
!=
0
)
return
log_error_errno
(
false
,
errno
,
"Failed to enter cgroup
\"
%s
\"
"
,
h
->
container_full_path
);
return
log_error_errno
(
false
,
errno
,
"Failed to enter cgroup
\"
%s
\"
"
,
h
->
container_full_path
);
TRACE
(
"Moved container into %s cgroup via %d"
,
h
->
container_full_path
,
h
->
cgfd_con
);
}
}
return
true
;
return
true
;
...
...
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