summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-21 01:04:05 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-21 01:04:05 +0200
commit8f689d09814add5e1b22577cc104e2eb5e16c66f (patch)
tree7fe072c6bab237e2d4b055213fc4297d20dfb131 /main.c
parent26486b46eada232ef807f3d969ffdec33d5e4858 (diff)
downloadnetifd-8f689d09814add5e1b22577cc104e2eb5e16c66f.tar.gz
in log read, check for EINTR instead of EAGAIN to avoid infinite loops
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index bed0edd..2fc3733 100644
--- a/main.c
+++ b/main.c
@@ -90,7 +90,7 @@ retry:
maxlen = LOG_BUF_SIZE - proc->log_buf_ofs;
read_len = len = read(fd->fd, buf, maxlen);
if (len < 0) {
- if (errno == EAGAIN)
+ if (errno == EINTR)
goto retry;
goto out;