When unloading cgroups, ignore the systemd cgroup. Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com> --- src/config.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/src/config.c b/src/config.c index 11d1da4897d0..60cac5725dbe 100644 --- a/src/config.c +++ b/src/config.c @@ -1396,6 +1396,13 @@ int cgroup_unload_cgroups(void) error = cgroup_get_controller_begin(&ctrl_handle, &info); while (error == 0) { + if (strcmp("systemd", info.name) == 0 || + strcmp("name=systemd", info.name) == 0) { + error = cgroup_get_controller_next(&ctrl_handle, + &info); + continue; + } + if (!curr_path || strcmp(info.path, curr_path) != 0) { if (curr_path) free(curr_path); -- 2.26.2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel