diff options
author | Hristo Venev | 2022-05-07 20:07:00 +0300 |
---|---|---|
committer | Yigit Sever | 2023-07-21 03:03:51 +0300 |
commit | 1bb668962658b4e805f56eae0e2585ade645c116 (patch) | |
tree | 74196adf2898e09a0b349449b8ba772503002c9c /config.c | |
parent | d4d0a488eb6f9456df2fa7fc9348c5076ee7dfab (diff) | |
download | cgit-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 'config.c')
0 files changed, 0 insertions, 0 deletions