Re: [PATCH] quickfetch(): Prevent overflow of the rev-list command line
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 9, 2009, 08:49 UTC
- Message-ID
- <81b0412b0907090149l34450255ka77a2341e7ee966b@mail.gmail.com>
- In-Reply-To
- <200907091043.03263.johan@herland.net>
On Thu, Jul 9, 2009 at 10:43, Johan Herland<johan@herland.net> wrote:
Show 8 quoted lines
> On Wednesday 08 July 2009, Junio C Hamano wrote: >> Johan Herland <johan@herland.net> writes: >> > Maybe I need to do something to the close() call as well? What happens >> > on close() after EPIPE? > > Does anybody with Windows/MSYS experience know how this scenario (write() to > a terminated process, followed by close()) would play out in msysGit? >
It fails with ERROR_BROKEN_PIPE. See MSDN for WriteFile:
http://msdn.microsoft.com/en-us/library/aa365747%28VS.85%29.aspx
(look for the error above).
Well, sometimes it just fails, so you can hardly use the error code to detect if the other process is truly gone or something broke in Windows.