From: Tom Hromatka Date: Mon, 10 Apr 2023 22:01:23 +0000 (+0000) Subject: api: Add support for domain invalid cgroups X-Git-Tag: v3.1.0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c84f23e9d831d8ca4a15a395c17989f599b4861;p=thirdparty%2Flibcgroup.git api: Add support for domain invalid cgroups Signed-off-by: Tom Hromatka Reviewed-by: Kamalesh Babulal --- diff --git a/src/api.c b/src/api.c index 717678bf..941b0755 100644 --- a/src/api.c +++ b/src/api.c @@ -1865,7 +1865,8 @@ static int cgroup_get_cg_type(const char * const path, char * const type, * an invalid state, under the threaded subtree. */ if (strncmp(cg_type, "domain", len) == 0 || - strncmp(cg_type, "domain threaded", len) == 0) { + strncmp(cg_type, "domain threaded", len) == 0 || + strncmp(cg_type, "domain invalid", len) == 0) { snprintf(type, type_sz, "cgroup.procs"); } else if (strncmp(cg_type, "threaded", len) == 0) { snprintf(type, type_sz, "cgroup.threads");