Re: [REGRESSION] Interrupted clone/fetch leaves .lock files around
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jun 6, 2006, 19:09 UTC
- Message-ID
- <7vmzcqp0cn.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060606185148.GA15521@diku.dk>
Jonas Fonseca <fonseca@diku.dk> writes:
Show 10 quoted lines
> Below is my feeble attempt at a (tested) fix. > > diff --git a/fetch.c b/fetch.c > index e040ef9..861dc60 100644 > --- a/fetch.c > +++ b/fetch.c > @@ -1,3 +1,5 @@ > +#include <signal.h> > + > #include "fetch.h"
I suspect you could do something similar to what we already do for index updates using atexit(). Let me take a look.