Merge "ueventd: fix a busy loop while reading uevents"
This commit is contained in:
commit
268cc54089
2 changed files with 2 additions and 2 deletions
|
@ -1132,7 +1132,7 @@ int main(int argc, char **argv)
|
|||
continue;
|
||||
|
||||
for (i = 0; i < fd_count; i++) {
|
||||
if (ufds[i].revents == POLLIN) {
|
||||
if (ufds[i].revents & POLLIN) {
|
||||
if (ufds[i].fd == get_property_set_fd())
|
||||
handle_property_set_fd();
|
||||
else if (ufds[i].fd == get_keychord_fd())
|
||||
|
|
|
@ -94,7 +94,7 @@ int ueventd_main(int argc, char **argv)
|
|||
nr = poll(&ufd, 1, -1);
|
||||
if (nr <= 0)
|
||||
continue;
|
||||
if (ufd.revents == POLLIN)
|
||||
if (ufd.revents & POLLIN)
|
||||
handle_device_fd();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue