From ad4c7fd74c869d5808090bc9ca73a60d70ad4a0d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 20 Jan 2022 20:10:33 +0100 Subject: [PATCH] [main] Coverity fixups --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index bd133df3..75438959 100644 --- a/src/main.c +++ b/src/main.c @@ -364,7 +364,7 @@ signal_signalfd_cb(int fd, short event, void *arg) struct signalfd_siginfo info; int status; - while (read(fd, &info, sizeof(struct signalfd_siginfo)) > 0) + while (read(fd, &info, sizeof(struct signalfd_siginfo)) == sizeof(struct signalfd_siginfo)) { switch (info.ssi_signo) {