The previous commit was an incomplete backport of commit
83e4c775,
and as a result made any attempt to start a domain when cgroups
are enabled go into an infinite loop. This fixes the botched
backport.
Signed-off-by: Eric Blake <eblake@redhat.com>
rc = virCgroupGetValueStr(src_group, controller, "tasks", &content);
if (rc != 0)
return rc;
+ if (!*content)
+ break;
rc = virCgroupAddTaskStrController(dest_group, content, controller);
if (rc != 0)