]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgclear: fixed exit code with -e option
authorJan Safranek <jsafrane@redhat.com>
Tue, 6 Dec 2011 15:06:58 +0000 (16:06 +0100)
committerJan Safranek <jsafrane@redhat.com>
Fri, 16 Dec 2011 12:51:40 +0000 (13:51 +0100)
commit25f2a29221da9d8fc05d618603bd0d79e40fac94
treeceaaf01f5e4e75929c8cee2a85078a031e08fa7a
parent4660e8c812cdfa508eaf429e435a5cc878a53c9c
cgclear: fixed exit code with -e option

cgclear -e is supposed to clear only empty groups. This works fine, but
when a non-empty group is being cleared, cgclear displays an error and
returns nozero exit code.

It should be silent and return zero exit code, because stumbling upon a
nonempty group is perfectly fine and not an error.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/api.c
src/tools/cgclear.c