From: Junio C Hamano Date: Tue, 06 Jun 2006 21:58:46 GMT Subject: Re: [REGRESSION] Interrupted clone/fetch leaves .lock files around Message-ID: <7v1wu2ndyh.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7vmzcqp0cn.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > Jonas Fonseca writes: > >> 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 >> + >> #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. Indeed it turns out that the signal work Pasky did in index.c is exactly suitable for this. I've pushed out three patches in "next" -- a few more eyeballs are appreciated on this one.