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.
This commit is contained in:
Eric Blake 2011-07-04 10:28:27 +08:00 committed by Daniel Veillard
parent dd0c42abd4
commit 3f81f8e4c1

View 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);
}