projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
in log read, check for EINTR instead of EAGAIN to avoid infinite loops
[project/netifd.git]
/
main.c
diff --git
a/main.c
b/main.c
index bed0edd4167c2e25a2e5465cb798bb3c741d81d4..2fc3733faaf9a4e5205efee68915b282a221ffa5 100644
(file)
--- 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 == E
AGAIN
)
+ if (errno == E
INTR
)
goto retry;
goto out;