Re: [PATCH] t0008: avoid SIGPIPE race condition on fifo
- From
Jeff King <peff@peff.net>
- Date
- Jul 12, 2013, 20:42 UTC
- 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:
Show 9 quoted lines
> > 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