Merge "ueventd: fix a busy loop while reading uevents"

This commit is contained in:
Colin Cross 2013-12-28 20:09:52 +00:00 committed by Gerrit Code Review
commit 268cc54089
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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();
}
}