From d6aa913f620001e580310012174133895a30c4da Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 18 Apr 2021 19:50:29 +0200 Subject: main: fix errno check --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 53d5367..f133d2e 100644 --- a/main.c +++ b/main.c @@ -423,7 +423,7 @@ main(int argc, const char *const *argv) int ret = poll(fds, sizeof(fds) / sizeof(fds[0]), -1); if (ret < 0) { - if (ret == EINTR) + if (errno == EINTR) continue; LOG_ERRNO("failed to poll"); -- cgit v1.2.3