diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-11-26 16:06:30 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-11-26 16:06:30 +0100 |
commit | 2e6081f2ff69d61b8b7bedbacf3a8de60de2b0b6 (patch) | |
tree | 4157ba98d13db92aa4f1c0af891ea3636d88797f /src/device.c | |
parent | 99448c1f01d79891e0afdfcf3ec8ed9fa92502ae (diff) |
udev: make sure we aleways read from netlink, if there is data
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 3 |
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))) { |