From: Lars Hjemli Date: Sun, 18 May 2008 21:26:05 +0000 (+0200) Subject: cache.c: use xread()/xwrite() from libgit X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/cdc6b2f8e7a8d43dcfe0475a9d3498333ea686b8?hp=cdc6b2f8e7a8d43dcfe0475a9d3498333ea686b8 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 Signed-off-by: Lars Hjemli ---