summaryrefslogtreecommitdiffstats
path: root/uevent
diff options
context:
space:
mode:
Diffstat (limited to 'uevent')
-rw-r--r--uevent/uevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uevent/uevent.c b/uevent/uevent.c
index ef8ce84..b9e3557 100644
--- a/uevent/uevent.c
+++ b/uevent/uevent.c
@@ -81,7 +81,7 @@ int uevent_next_event(char* buffer, int buffer_length)
fds.revents = 0;
nr = poll(&fds, 1, -1);
- if(nr > 0 && fds.revents == POLLIN) {
+ if(nr > 0 && (fds.revents & POLLIN)) {
int count = recv(fd, buffer, buffer_length, 0);
if (count > 0) {
struct uevent_handler *h;