diff options
| author | Hristo Venev <[email protected]> | 2022-05-07 17:07:00 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2022-12-19 15:13:58 +0000 |
| commit | 852cb3b0e267dd2ddfd2eeef6275435098c606e7 (patch) | |
| tree | 1f2c04d6da8bbb1064e18aa1b83cc14c2203c333 /cgit.c | |
| parent | global: use release_commit_memory() (diff) | |
| download | cgit-852cb3b0e267dd2ddfd2eeef6275435098c606e7.tar.gz cgit-852cb3b0e267dd2ddfd2eeef6275435098c606e7.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 <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'cgit.c')
0 files changed, 0 insertions, 0 deletions
