Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2022-05-07 20:07:00 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2022-12-19 18:13:58 +0300
commit852cb3b0e267dd2ddfd2eeef6275435098c606e7 (patch)
tree1f2c04d6da8bbb1064e18aa1b83cc14c2203c333 /tests/Makefile
parent4c520cefc90b10566fcc8a0b006287494a7770e1 (diff)
cache: tolerate short writes in print_slot
sendfile() can return after a short read/write, so we may need to call it more than once. As suggested in the manual page, we fall back to read/write if sendfile fails with EINVAL or ENOSYS. On the read/write path, use write_in_full which deals with short writes. Signed-off-by: Hristo Venev <hristo@venev.name> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tests/Makefile')
0 files changed, 0 insertions, 0 deletions