Commit 52168c27 authored by Niels Möller's avatar Niels Möller
Browse files

(lsh_string_read): Loop on EINTR.

Rev: src/lsh_string.c:
parent b457c62f
......@@ -344,8 +344,10 @@ lsh_string_read(struct lsh_string *s, uint32_t start,
ASSERT_ROOM(s, start, length);
res = read(fd, s->data + start, length);
res = read(fd, s->data + start, length);
while (res < 0 && errno == EINTR);
return res;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment