diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-09-03 15:18:06 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-09-03 15:19:15 +0200 |
commit | e859aa9e993453be321450148d45d08fcc55c3f5 (patch) | |
tree | a70d208d10318c3f39b596c9c84eb8e90808b3f2 /src | |
parent | 017574e6e8d45870c1ba7757134d7b4c252c0e14 (diff) |
udev: ignore ENOEXEC from cgroup lookup
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/udev/udevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 28ac44fb8e..f354ced2e2 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -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"); |