With much of the groundwork laid, adding cgroup v2 support to
cgdelete was a straightforward task.  There were two places in
the cgdelete codepath that had hardcoded "/tasks".  Replacing
that logic with a call to cgroup_build_tasks_procs_path() was
enough to get cgdelete working on both cgroup v1 and v2.

Since the source and tests are in different github repositories,
the changes to the tests have been sent in a separate patchset.

Code is available here:
https://github.com/drakenclimber/libcgroup/tree/issues/cgdelete

Tests are available here (and will be sent out in a separate
patchset):
https://github.com/drakenclimber/libcgroup-tests/tree/issues/cgdelete

Automated test results are here:
https://travis-ci.com/github/drakenclimber/libcgroup/builds/190494249

Code coverage increased by 1.5% and is now at 22.86%:
https://coveralls.io/builds/34232704

Tom Hromatka (1):
  api.c: Replace hardcoded "/tasks" in delete functions

 src/api.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

-- 
2.17.1



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to