detect close failure on just-written file handles
commit91c8d5905c33e9d7c9014a1c6c7cec8eb86584df
authorJim Meyering <jim@meyering.net>
Sun, 24 Jun 2007 19:20:41 +0000 (24 21:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jun 2007 04:48:53 +0000 (26 21:48 -0700)
treec3dbbc16aa7df268aae8962bc4cac367fc5c51ca
parent2275d502114c71045af991697048191fed88aac4
detect close failure on just-written file handles

I audited git for potential undetected write failures.
In the cases fixed below, the diagnostics I add mimic the diagnostics
used in surrounding code, even when that means not reporting
the precise strerror(errno) cause of the error.

Signed-off-by: Jim Meyering <jim@meyering.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-init-db.c
builtin-rerere.c
index-pack.c
refs.c