Re: [PATCH v4 07/32] hold_lock_file_for_append(): release lock on errors
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 9, 2014, 22:41 UTC
- Message-ID
- <xmqqiokwifi9.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1409989846-22401-8-git-send-email-mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> If there is an error copying the old contents to the lockfile, roll > back the lockfile before exiting so that the lockfile is not held > until process cleanup.
Same comment as 06/32 applies here.