summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-11-22 19:54:31 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-11-22 21:38:38 +0100
commit19f0a71ba0ff886dd25b140dc86b055564f71df0 (patch)
tree6d743930a4abcd56fd52dd000022c5223c9a51c9
parentMerge pull request #30153 from bluca/news (diff)
downloadsystemd-19f0a71ba0ff886dd25b140dc86b055564f71df0.tar.xz
systemd-19f0a71ba0ff886dd25b140dc86b055564f71df0.zip
io-util: actually retry on failure
Follow-up for e22c60a9d5dfc5f0b260c7906f3546aef2925998. Fixes #30152.
-rw-r--r--src/basic/io-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/io-util.c b/src/basic/io-util.c
index dee59947aa..6bcbef3413 100644
--- a/src/basic/io-util.c
+++ b/src/basic/io-util.c
@@ -163,6 +163,7 @@ int loop_write_full(int fd, const void *buf, size_t nbytes, usec_t timeout) {
return r;
if (r == 0)
return -ETIME;
+ continue;
}
if (_unlikely_(nbytes > 0 && k == 0)) /* Can't really happen */