]> gitweb.ps.run Git - ps-cgit/commitdiff
cache.c: use xread()/xwrite() from libgit
authorLars Hjemli <hjemli@gmail.com>
Sun, 18 May 2008 21:26:05 +0000 (23:26 +0200)
committerLars Hjemli <hjemli@gmail.com>
Sun, 18 May 2008 21:34:55 +0000 (23:34 +0200)
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>

No differences found