threads / patch / 2018

patchhold_index_file_for_update should not unlink failed to open .lock files atexit

Subject: [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit

## tl;dr

2 messages between Oct 5, 2005 and Oct 5, 2005. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Alex Riesen· Oct 5, 2005, 14:58 UTC · lore
Hello,

I noticed that index.lock is one time removed by git-update-index and the other time not (I am still trying to make the rename behave on my cygwin installation). The atexit callback removes .lock file uncoditionally, whether it was opened by the current process or not.

I fixed this with the attached (sorry, it's windows+firefox+gmail) patch.
The patch sets up atexit only if the file was opened successfully.

← back to recent threads