summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2026-03-12 22:10:24 +0000
committerChristian Marangi2026-03-13 22:32:39 +0000
commit58eb263d5abe03f8c1280bdfa65a3b052614215d (patch)
tree356bf78f5eb0de84cb601ca087475725ae0727ae
parent9baf019a6f7203da50edae91c3638c98bfa357ee (diff)
downloadprocd-master.tar.gz
instance: don't print error in case cgroups are disabledHEADmastermain
cgroups aren't enabled on targets with small_flash, which currently means that the user is bothered with noisy warning messages because the instance cgroup cannot be created. Silently skip cgroups setup if not supported by the kernel, as it was before commit 7e5b324 ("instance: check length of names when creating cgroups"). Fixes: #33 Fixes: 7e5b324 ("instance: check length of names when creating cgroups") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--service/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/instance.c b/service/instance.c
index 708af40..51d85b0 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -569,7 +569,7 @@ instance_add_cgroup(const char *service, const char *instance)
int fd, ret;
if (stat("/sys/fs/cgroup/cgroup.subtree_control", &sb))
- return -ENOENT;
+ return 0;
ret = snprintf(cgnamebuf, sizeof(cgnamebuf), "%s/%s/%s", CGROUP_BASEDIR,
service, instance);