]> xenbits.xensource.com Git - libvirt.git/commitdiff
cgroup: silence coverity warning
authorEric Blake <eblake@redhat.com>
Mon, 4 Jul 2011 02:28:27 +0000 (10:28 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 4 Jul 2011 02:28:27 +0000 (10:28 +0800)
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.

src/util/cgroup.c

index 2e5ef46d3de4f7723fb8b66e9278addfb41bf7af..740cedf8cde372684e046976877c30dc838ff450 100644 (file)
@@ -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);
         }