diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-21 01:04:05 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-21 01:04:05 +0200 |
commit | 8f689d09814add5e1b22577cc104e2eb5e16c66f (patch) | |
tree | 7fe072c6bab237e2d4b055213fc4297d20dfb131 /main.c | |
parent | 26486b46eada232ef807f3d969ffdec33d5e4858 (diff) |
in log read, check for EINTR instead of EAGAIN to avoid infinite loops
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |