about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorHristo Venev2022-05-07 20:07:00 +0300
committerJune McEnroe2022-05-13 16:07:35 -0400
commit695515801c9241f106f6f99b04dc0e84439fdea5 (patch)
tree4d30ba8c55f0eb64ab6288dff16417accecf904e /Makefile
parentgit: update to v2.36.1 (diff)
downloadcgit-695515801c9241f106f6f99b04dc0e84439fdea5.tar.gz
cgit-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 'Makefile')
0 files changed, 0 insertions, 0 deletions