mirror of https://git.zx2c4.com/cgit/
cache.c: use xread()/xwrite() from libgit
These functions handles EINTR/EAGAIN errors during read/write operations, which is something cache.c didn't. While at it, fix a bug in print_slot() where errors during reading from the cache slot might go by unnoticed. Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>lh/pretty-blob-view
parent
d402811bd2
commit
cdc6b2f8e7
Loading…
Reference in New Issue