]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroup: introduce virCgroupKillRecursiveCB
authorPavel Hrdina <phrdina@redhat.com>
Mon, 10 Dec 2018 08:51:14 +0000 (16:51 +0800)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 14 Dec 2018 03:27:18 +0000 (11:27 +0800)
commitb532546823fde032fe827d41735a0d591c3bc0b8
tree6fc08b6d860ea557d88e795e0ff444fd63ff5000
parente6f53e7a4b43eab35e71bc95596d03809079ac45
vircgroup: introduce virCgroupKillRecursiveCB

The rewrite to support cgroup v2 missed this function.  In cgroup v2
we have different files to track tasks.

We would fail to remove cgroup on non-systemd OSes if there is any
extra process assigned to guest cgroup because we would not kill any
process form the guest cgroup.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c
src/util/vircgroupbackend.h
src/util/vircgrouppriv.h
src/util/vircgroupv1.c
src/util/vircgroupv2.c