-
- if ((q = cg_get_user_path(&cgroup_user_tree)) < 0) {
- log_error("Failed to determine use path: %s", strerror(-q));
- goto finish;
- }
-
- q = cg_kill_recursive_and_wait(SYSTEMD_CGROUP_CONTROLLER, cgroup_user_tree, true);
- free(cgroup_user_tree);
-
- if (q < 0) {
- log_error("Failed to kill sessions: %s", strerror(-q));
- goto finish;