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:1.2.2.5
parent b457c62f
......@@ -344,8 +344,10 @@ lsh_string_read(struct lsh_string *s, uint32_t start,
assert(length);
ASSERT_ROOM(s, start, length);
res = read(fd, s->data + start, length);
do
res = read(fd, s->data + start, length);
while (res < 0 && errno == EINTR);
assert(!s->data[s->length]);
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