summaryrefslogtreecommitdiff
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 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;