about summary refs log tree commit diff
path: root/tests/t0020-validate-cache.sh
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2022-05-07 20:07:00 +0300
committerJune McEnroe <june@causal.agency>2022-05-13 16:07:35 -0400
commit695515801c9241f106f6f99b04dc0e84439fdea5 (patch)
tree4d30ba8c55f0eb64ab6288dff16417accecf904e /tests/t0020-validate-cache.sh
parentgit: update to v2.36.1 (diff)
downloadcgit-pink-695515801c9241f106f6f99b04dc0e84439fdea5.tar.gz
cgit-pink-695515801c9241f106f6f99b04dc0e84439fdea5.zip
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>
Diffstat (limited to 'tests/t0020-validate-cache.sh')
0 files changed, 0 insertions, 0 deletions