From 2e6081f2ff69d61b8b7bedbacf3a8de60de2b0b6 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 26 Nov 2010 16:06:30 +0100 Subject: [PATCH] udev: make sure we aleways read from netlink, if there is data --- src/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index b5763645..957bc2d6 100644 --- a/src/device.c +++ b/src/device.c @@ -533,7 +533,8 @@ void device_fd_event(Manager *m, int events) { if (!ratelimit_test(&limit)) log_error("Failed to get udev event: %m"); - return; + if (!(events & EPOLLIN)) + return; } if (!(dev = udev_monitor_receive_device(m->udev_monitor))) { -- 2.39.5