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
ecc357ca
Commit
ecc357ca
authored
Jan 19, 2014
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgmanager: &existed for remove+create now returns -1 on failure
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
c3f0f139
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgmanager.c
src/lxc/cgmanager.c
+2
-2
No files found.
src/lxc/cgmanager.c
View file @
ecc357ca
...
@@ -137,7 +137,7 @@ void cgmanager_remove_cgroup(const char *controller, const char *path)
...
@@ -137,7 +137,7 @@ void cgmanager_remove_cgroup(const char *controller, const char *path)
if
(
cgmanager_remove_sync
(
NULL
,
cgroup_manager
,
controller
,
if
(
cgmanager_remove_sync
(
NULL
,
cgroup_manager
,
controller
,
path
,
CG_REMOVE_RECURSIVE
,
&
existed
)
!=
0
)
path
,
CG_REMOVE_RECURSIVE
,
&
existed
)
!=
0
)
ERROR
(
"Error removing %s:%s"
,
controller
,
path
);
ERROR
(
"Error removing %s:%s"
,
controller
,
path
);
if
(
!
existed
)
if
(
existed
==
-
1
)
INFO
(
"cgroup removal attempt: %s:%s did not exist"
,
controller
,
path
);
INFO
(
"cgroup removal attempt: %s:%s did not exist"
,
controller
,
path
);
}
}
...
@@ -210,7 +210,7 @@ again:
...
@@ -210,7 +210,7 @@ again:
cleanup_cgroups
(
d
,
tmp
);
cleanup_cgroups
(
d
,
tmp
);
return
false
;
return
false
;
}
}
if
(
existed
)
if
(
existed
==
1
)
goto
next
;
goto
next
;
}
}
// success
// success
...
...
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