]> xenbits.xensource.com Git - libvirt.git/commit
vircgroup: Try harder to kill cgroup
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Jan 2019 16:20:58 +0000 (17:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Feb 2019 10:16:29 +0000 (11:16 +0100)
commit401030499bfb03b182da14f7e00f4a82beab9a8e
tree5d97bc16ed1613d8adf947c3c754cdd491a0212f
parent797bdb3ce8a49b999f174d73c9104793e066280a
vircgroup: Try harder to kill cgroup

Prior to rewrite of cgroup code we only had one backend to try.
After the rewrite the virCgroupBackendGetAll() returns both
backends (for v1 and v2). However, not both have to really be
present on the system which results in killRecursive callback
failing which in turn might mean we won't try the other backend.

At the same time, this function reports no error as it should.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/vircgroup.c