Skip to content

Commit 19f0a71

Browse files
yuwatabluca
authored andcommitted
io-util: actually retry on failure
Follow-up for e22c60a. Fixes #30152.
1 parent fc88adc commit 19f0a71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/basic/io-util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ int loop_write_full(int fd, const void *buf, size_t nbytes, usec_t timeout) {
163163
return r;
164164
if (r == 0)
165165
return -ETIME;
166+
continue;
166167
}
167168

168169
if (_unlikely_(nbytes > 0 && k == 0)) /* Can't really happen */

0 commit comments

Comments
 (0)