about summary refs log tree commit diff
path: root/ui-blob.c
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 /ui-blob.c
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 '')
0 files changed, 0 insertions, 0 deletions
>2018-09-13Move color selection to format.cJune McEnroe 2018-09-13Fix len for format->split at end of stringJune McEnroe 2018-09-13Avoid uninitialized x in uiReadJune McEnroe 2018-09-13Add IRCDefault to colors enumJune McEnroe 2018-09-13Return a format->split even at the end of the stringJune McEnroe 2018-09-13Fix weird tab-complete after commaJune McEnroe 2018-09-13Rewrite UI againJune McEnroe 2018-09-12Add note about C-oJune McEnroe 2018-09-12Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe