diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2021-04-18 19:50:29 +0200 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2021-04-18 19:50:29 +0200 |
commit | d6aa913f620001e580310012174133895a30c4da (patch) | |
tree | d6a3d2787d8058a301dbe0ead9846c24920ff427 | |
parent | d4729fdae017bd5069e0632d039599595eca499c (diff) | |
download | wbg-d6aa913f620001e580310012174133895a30c4da.tar.gz |
main: fix errno check
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |