diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-22 19:54:31 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-11-22 21:38:38 +0100 |
commit | 19f0a71ba0ff886dd25b140dc86b055564f71df0 (patch) | |
tree | 6d743930a4abcd56fd52dd000022c5223c9a51c9 /src | |
parent | Merge pull request #30153 from bluca/news (diff) | |
download | systemd-19f0a71ba0ff886dd25b140dc86b055564f71df0.tar.xz systemd-19f0a71ba0ff886dd25b140dc86b055564f71df0.zip |
io-util: actually retry on failure
Follow-up for e22c60a9d5dfc5f0b260c7906f3546aef2925998.
Fixes #30152.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/io-util.c | 1 |
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 */ |