aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHristo Venev2022-05-07 20:07:00 +0300
committerYigit Sever2023-07-21 03:03:51 +0300
commit1bb668962658b4e805f56eae0e2585ade645c116 (patch)
tree74196adf2898e09a0b349449b8ba772503002c9c /tests
parentd4d0a488eb6f9456df2fa7fc9348c5076ee7dfab (diff)
downloadcgit-1bb668962658b4e805f56eae0e2585ade645c116.tar.gz
cgit-1bb668962658b4e805f56eae0e2585ade645c116.tar.bz2
cgit-1bb668962658b4e805f56eae0e2585ade645c116.zip
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')
0 files changed, 0 insertions, 0 deletions