aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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");