summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-22 22:32:26 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-22 22:32:26 +0200
commitf582dbaa142986e4dcf94de74b47c0f4e37b4ec8 (patch)
treef590c5c924d21e566a8092f8f44d1a13eaa5eadc
parentd806a1df5bcde05a11c08eb279aacb38b0a24c82 (diff)
parent11b9fb15be96da5644ebf85bbc390fdd2756ade9 (diff)
Merge pull request #319 from teg/udev-cgroup-warning
udevd: suppress warning if we don't find cgroup
-rw-r--r--src/udev/udevd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index c205f1d5ec..ff15664cb4 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1672,8 +1672,12 @@ int main(int argc, char *argv[]) {
we only do this on systemd systems, and only if we are directly spawned
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)
- log_warning_errno(r, "failed to get cgroup: %m");
+ if (r < 0) {
+ if (r == -ENOENT)
+ log_debug_errno(r, "did not find dedicated cgroup: %m");
+ else
+ log_warning_errno(r, "failed to get cgroup: %m");
+ }
}
r = listen_fds(&fd_ctrl, &fd_uevent);