From: Kay Sievers Date: Fri, 26 Nov 2010 15:06:30 +0000 (+0100) Subject: udev: make sure we aleways read from netlink, if there is data X-Git-Tag: v16~65 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6081f2ff69d61b8b7bedbacf3a8de60de2b0b6;p=systemd udev: make sure we aleways read from netlink, if there is data --- 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))) {