]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: Add function to build tasks/procs path
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Sep 2020 16:39:33 +0000 (10:39 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 15 Oct 2020 19:43:09 +0000 (13:43 -0600)
commit3bb5a8f4ef892a0f125b2455b1a566fced559e4f
treeab6e7da77bcfb1fffd8550e5ce85954b51b1f4e6
parent2a39265cefc1e4246603d1490911d5b5555a295a
api.c: Add function to build tasks/procs path

Replace the inline logic in multiple functions that concatenates
the path and cgroup v1 tasks file with a function -
cgroup_build_tasks_procs_path() - that works for both cgroup v1
and v2.  In the v1 case, it appends tasks, and in the v2 case, it
appends cgroup.procs.

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