]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: Replace hardcoded "/tasks" in delete functions 14/head
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 15 Oct 2020 21:58:19 +0000 (15:58 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 16 Oct 2020 15:02:23 +0000 (15:02 +0000)
commitc0a7606c2f7292be3f245e56843edf762bb7cbf0
tree4e791b146de8205dcce954f59f99d411e4d2e92f
parent835b7841c5083fa72d46f6493b9617100516f993
api.c: Replace hardcoded "/tasks" in delete functions

Replace the hardcoded building of the tasks path in
cg_delete_cgroup_controller() and cgroup_delete_cgroup_ext()
with a call to cgroup_build_tasks_procs_path().  By calling
cgroup_build_tasks_procs_path(), both delete functions now
support cgroup v1 and v2.

cgdelete now supports cgroup v2.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/api.c