From: Eric Blake Date: Mon, 4 Jul 2011 02:28:27 +0000 (+0800) Subject: cgroup: silence coverity warning X-Git-Tag: v0.9.3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f81f8e4c1aae599a07cbc2e93a9688d87490bc5;p=thirdparty%2Flibvirt.git cgroup: silence coverity warning Coverity noted that most clients reacted to failure to hash; but in a best-effort kill loop, we can ignore failure. * src/util/cgroup.c (virCgroupKillInternal): Ignore hash failure. --- diff --git a/src/util/cgroup.c b/src/util/cgroup.c index 2e5ef46d3d..740cedf8cd 100644 --- a/src/util/cgroup.c +++ b/src/util/cgroup.c @@ -1395,7 +1395,7 @@ static int virCgroupKillInternal(virCgroupPtr group, int signum, virHashTablePtr done = false; } - virHashAddEntry(pids, (void*)pid, (void*)1); + ignore_value(virHashAddEntry(pids, (void*)pid, (void*)1)); } VIR_FORCE_FCLOSE(fp); }