Subject: Re: [PATCH] receive-pack: fix stale packfile locks when dying

From: Junio C Hamano <[email-masked]>
Date: Thu, 09 Mar 2023 10:49:01 -0800

Junio C Hamano <[email-masked]> writes:

>> @@ -2281,6 +2287,7 @@ static const char *unpack(int err_fd, struct shallow_info *si)
>>  		if (status)
>>  			return "index-pack fork failed";
>>  		pack_lockfile = index_pack_lockfile(child.out, NULL);
>> +		atexit(unlink_pack_lockfile);
>
> Hmph, why isn't this a straight application of tempfile API?

Ah, sorry, that has already been raised in the thread.  I should
have checked first.

Sorry for the noise.