Fix cgclassify to return zero exit code when it succeeds.
Signed-off-by: Jan Safranek <[email protected]>
---
src/tools/cgclassify.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c
index 3181105..fcad4b2 100644
--- a/src/tools/cgclassify.c
+++ b/src/tools/cgclassify.c
@@ -45,10 +45,11 @@ static int change_group_path(pid_t pid, struct
cgroup_group_spec *cgroup_list[])
ret = cgroup_change_cgroup_path(cgroup_list[i]->path, pid,
(const char*const*)
cgroup_list[i]->controllers);
- if (ret)
+ if (ret) {
fprintf(stderr, "Error changing group of pid %d: %s\n",
pid, cgroup_strerror(ret));
return -1;
+ }
}
return 0;
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel