Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
52168c27
Commit
52168c27
authored
Sep 14, 2005
by
Niels Möller
Browse files
(lsh_string_read): Loop on EINTR.
Rev: src/lsh_string.c:1.2.2.5
parent
b457c62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh_string.c
View file @
52168c27
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment