aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-04-18 19:50:29 +0200
committerDaniel Eklöf <daniel@ekloef.se>2021-04-18 19:50:29 +0200
commitd6aa913f620001e580310012174133895a30c4da (patch)
treed6a3d2787d8058a301dbe0ead9846c24920ff427
parentd4729fdae017bd5069e0632d039599595eca499c (diff)
downloadwbg-d6aa913f620001e580310012174133895a30c4da.tar.gz
main: fix errno check
-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");