]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: ignore ENOEXEC from cgroup lookup
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 3 Sep 2015 13:18:06 +0000 (15:18 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 3 Sep 2015 13:19:15 +0000 (15:19 +0200)
The recent cgroup-rework changed the error code for un-mounted cgroupfs to
ENOEXEC. Make sure udev ignores it just like ENOENT and does not spill
warnings on the screen.

src/udev/udevd.c

index 28ac44fb8ebb6b1a278ce27d1cb2f27c070e9275..f354ced2e271908d530533710ca5256a4b3482b6 100644 (file)
@@ -1706,7 +1706,7 @@ int main(int argc, char *argv[]) {
                    by PID1. otherwise we are not guaranteed to have a dedicated cgroup */
                 r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup);
                 if (r < 0) {
-                        if (r == -ENOENT)
+                        if (r == -ENOENT || r == -ENOEXEC)
                                 log_debug_errno(r, "did not find dedicated cgroup: %m");
                         else
                                 log_warning_errno(r, "failed to get cgroup: %m");