summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-08 02:30:07 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-08 02:30:07 +0100
commit47ae6e6760301ecae086e984b0b23f2db9663b28 (patch)
tree68e7e4e64eada84e2ebc48042212714a9e3264f0 /src/device.c
parent487a15bb726698f84503682ccbc30375586c52de (diff)
device: don't warn if we cannot bump the socket buffer
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 957bc2d6b5..b36bfc1ad1 100644
--- a/src/device.c
+++ b/src/device.c
@@ -468,8 +468,10 @@ static int device_enumerate(Manager *m) {
goto fail;
}
- if (udev_monitor_set_receive_buffer_size(m->udev_monitor, 128*1024*1024) < 0)
- log_error("Failed to set udev event buffer size.");
+ /* This will fail if we are unprivileged, but that
+ * should not matter much, as user instances won't run
+ * during boot. */
+ udev_monitor_set_receive_buffer_size(m->udev_monitor, 128*1024*1024);
if (udev_monitor_filter_add_match_tag(m->udev_monitor, "systemd") < 0) {
r = -ENOMEM;