configure.ac: make cgroup2 configurable (#406)

This commit is contained in:
Ming authored and GitHub committed 2024-05-11 14:06:01 +02:00
1 parent 7481505b1a
commit 9a0dea6aef
2 files changed
+13

No files matched your search

+5
View File
@@ -463,6 +463,11 @@ void cgroup_init(uev_ctx_t *ctx)
FILE *fp;
int fd;
#ifndef CGROUP2_ENABLED
avail = 0;
return;
#endif
if (mount("none", FINIT_CGPATH, "cgroup2", opts, NULL)) {
if (errno == ENOENT)
logit(LOG_INFO, "Kernel does not support cgroups v2, disabling.");