]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Revert "vircgroup: cleanup controllers not managed by systemd on error"
authorPavel Hrdina <phrdina@redhat.com>
Thu, 27 Sep 2018 14:11:19 +0000 (16:11 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 28 Sep 2018 17:51:01 +0000 (19:51 +0200)
commit199eee6aae7af3d813fbe98660c7e0fa1a8ae7b7
tree79eb36dc207fbf697e7b0e29b86ef5128167256b
parentb1a0f691ce4652fc71aca6776f085355040322da
Revert "vircgroup: cleanup controllers not managed by systemd on error"

This reverts commit 1602aa28f820ada66f707cef3e536e8572fbda1e.

There is no need to call virCgroupRemove() nor virCgroupFree() if
virCgroupEnableMissingControllers() fails because it will not modify
'group' at all.

The cleanup of directories is done in virCgroupMakeGroup().

Reviewed-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c