mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
udev: make sure we aleways read from netlink, if there is data
This commit is contained in:
parent
99448c1f01
commit
2e6081f2ff
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user