From: Sven Eden Date: Mon, 15 Jan 2018 19:20:52 +0000 (+0100) Subject: If elogind is just started, /sys/fs/cgroup/elogind might not exist, yet on legacy... X-Git-Tag: v235.2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4635be51e225a814c590e9841682e366baa68006;p=elogind.git If elogind is just started, /sys/fs/cgroup/elogind might not exist, yet on legacy and hybrid systems. --- diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 884589f99..7f86c532c 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -2569,8 +2569,6 @@ static int cg_unified_update(void) { unified_cache = CGROUP_UNIFIED_SYSTEMD; unified_systemd_v232 = true; } else { - if (statfs("/sys/fs/cgroup/elogind/", &fs) < 0) - return -errno; #endif // 0 if (!F_TYPE_EQUAL(fs.f_type, CGROUP_SUPER_MAGIC)) return -ENOMEDIUM;