Re: [PATCH] receive-pack: fix stale packfile locks when dying
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2023, 18:49 UTC
- Message-ID
- <xmqqo7p1ahgi.fsf@gitster.g>
- In-Reply-To
- <xmqqsfedahhl.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
>> @@ -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.