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
f02adce2
Commit
f02adce2
authored
Apr 27, 2012
by
Frederic Crozat
Committed by
Serge Hallyn
Feb 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give a hint if old cgroup can't be moved
When cgroup can't be moved, it might be a hint container is already running. Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
d696d21c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cgroup.c
src/lxc/cgroup.c
+3
-0
No files found.
src/lxc/cgroup.c
View file @
f02adce2
...
@@ -560,6 +560,9 @@ static int lxc_one_cgroup_create(const char *name,
...
@@ -560,6 +560,9 @@ static int lxc_one_cgroup_create(const char *name,
if
(
!
access
(
cgname
,
F_OK
)
&&
rmdir
(
cgname
))
{
if
(
!
access
(
cgname
,
F_OK
)
&&
rmdir
(
cgname
))
{
if
(
try_to_move_cgname
(
cgparent
,
cgname
))
{
if
(
try_to_move_cgname
(
cgparent
,
cgname
))
{
SYSERROR
(
"failed to remove previous cgroup '%s'"
,
cgname
);
SYSERROR
(
"failed to remove previous cgroup '%s'"
,
cgname
);
ERROR
(
"##"
);
ERROR
(
"# The container might be already running!"
);
ERROR
(
"##"
);
return
-
1
;
return
-
1
;
}
}
}
}
...
...
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