From: Jeff King Date: Fri, 12 Jul 2013 20:42:28 GMT Subject: Re: [PATCH] t0008: avoid SIGPIPE race condition on fifo Message-ID: <20130712204228.GB5276@sigill.intra.peff.net> In-Reply-To: <7vbo67oig5.fsf@alter.siamese.dyndns.org> On Fri, Jul 12, 2013 at 09:23:54AM -0700, Junio C Hamano wrote: > > In that case, check-ignore gets a SIGPIPE and dies. The > > outer shell then tries to open the output fifo but blocks > > indefinitely, because there is no writer. We can fix it by > > keeping a descriptor open through the whole procedure. > > Ahh, figures. > > I wish I were smart enough to figure that out immediately after > seeing the test that does funny things to "in" with "9". I wish I were smart enough to have figured it out when I was writing the funny stuff with "in" and "9" in the first place. :) -Peff