Use virCgroupAddTaskController in virCgroupAddTask so we have one
single point where we add tasks to cgroups.
Signed-off-by: Henning Schild <henning.schild(a)siemens.com>
---
src/util/vircgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 7584ee4..0b65238 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -1162,7 +1162,7 @@ virCgroupAddTask(virCgroupPtr group, pid_t pid)
if (i == VIR_CGROUP_CONTROLLER_SYSTEMD)
continue;
- if (virCgroupSetValueU64(group, i, "tasks", pid) < 0)
+ if (virCgroupAddTaskController(group, pid, i) < 0)
goto cleanup;
}
--
2.4.10