Re: [PATCH 3/3] send-pack: avoid deadlock on git:// push with failed pack-objects
- From
Jeff King <peff@peff.net>
- Date
- May 17, 2011, 05:56 UTC
- Message-ID
- <20110517055605.GE10048@sigill.intra.peff.net>
- In-Reply-To
- <4DD182C8.50308@kdbg.org>
On Mon, May 16, 2011 at 10:02:16PM +0200, Johannes Sixt wrote:
Show 5 quoted lines
> > + if (git_connection_is_socket(conn)) > > + shutdown(fd[0], SHUT_WR); > > We probably need a wrapper for shutdown() on Windows. I'll look into > this tomorrow.
FWIW, we already make an identical call in transport-helper.c (I was tempted even to use "1" instead of SHUT_WR for portability, but it seems nobody has complained so far about the use in transport-helper).
-Peff