From: Junio C Hamano Date: Sun, 24 Jun 2007 09:01:59 GMT Subject: Re: (resend) [PATCH] Don't ignore write failure from git-diff, git-log, etc. Message-ID: <7vzm2pwws8.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <87abuq1z6f.fsf@rho.meyering.net> Jim Meyering writes: > From: Jim Meyering > Date: Sat, 26 May 2007 13:43:07 +0200 > Subject: [PATCH] Don't ignore write failure from git-diff, git-log, etc. > > Currently, when git-diff writes to a full device or gets an I/O error, > it fails to detect the write error: > ... > Also, to be consistent with e.g., write_or_die, do not > diagnose EPIPE write failures. I still do not like the fact that this patch makes an error from the final stdout flushing override the return value from p->fn() even when the function already diagnosed an error, but otherwise I think it is a good change, as it allows us to catch one error case that we currently don't, without introducing an annoying EPIPE diagnosis. Naks, or vetoes?