udev_monitor.c: inotify read of size 0 is impossible

This commit is contained in:
illiliti
2021-06-03 09:30:46 +03:00
parent 32f9d14551
commit 37e5fa7206

View File

@@ -144,7 +144,7 @@ static void *handle_event(void *ptr)
}
// exit on ifd error or close
if (!(poll_fds[0].revents & POLLIN) || len == 0) {
if (!(poll_fds[0].revents & POLLIN)) {
return NULL;
}
@@ -160,7 +160,7 @@ static void *handle_event(void *ptr)
}
}
// unreacheble
// unreachable
return NULL;
}