chiark / gitweb /
If elogind is just started, /sys/fs/cgroup/elogind might not exist, yet on legacy...
authorSven Eden <yamakuzure@gmx.net>
Mon, 15 Jan 2018 19:20:52 +0000 (20:20 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 15 Jan 2018 19:20:52 +0000 (20:20 +0100)
src/basic/cgroup-util.c

index 884589f996502932292a28b03f823afefd648c3d..7f86c532cd8662b69d8508602b8fe5117b24e802 100644 (file)
@@ -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;