[main] Coverity fixups

This commit is contained in:
ejurgensen 2022-01-20 20:10:33 +01:00
parent 933affaa7e
commit ad4c7fd74c

View File

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