From: Jonathan Nieder Date: Tue, 16 Sep 2014 22:22:08 GMT Subject: Re: [PATCH v5 19/35] commit_lock_file(): rollback lock file on failure to rename Message-ID: <20140916222207.GS29050@google.com> In-Reply-To: <1410896036-12750-20-git-send-email-mhagger@alum.mit.edu> Michael Haggerty wrote: > If rename() fails, call rollback_lock_file() to delete the lock file > (in case it is still present) and reset the filename field to the > empty string so that the lockfile object is left in a valid state. Can you spell out more what the goal is? Is the idea to keep the .lock file for a shorter period of time, so other processes can lock that file before the current process exits?