From 37e5fa72062e6d8eb7a1cc2945954c1ef08b7333 Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 3 Jun 2021 09:30:46 +0300 Subject: [PATCH] udev_monitor.c: inotify read of size 0 is impossible --- udev_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udev_monitor.c b/udev_monitor.c index 804dd36..9e26bce 100644 --- a/udev_monitor.c +++ b/udev_monitor.c @@ -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; }