summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-11-26 16:06:30 +0100
committerKay Sievers <kay.sievers@vrfy.org>2010-11-26 16:06:30 +0100
commit2e6081f2ff69d61b8b7bedbacf3a8de60de2b0b6 (patch)
tree4157ba98d13db92aa4f1c0af891ea3636d88797f /src
parent99448c1f01d79891e0afdfcf3ec8ed9fa92502ae (diff)
udev: make sure we aleways read from netlink, if there is data
Diffstat (limited to 'src')
-rw-r--r--src/device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index b5763645e8..957bc2d6b5 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))) {