git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Alex Riesen <raa.lkml@gmail.com>
Date
Oct 5, 2005, 14:58 UTC
Message-ID
<81b0412b0510050758v26b88f4o5f15e3ff01e9cd87@mail.gmail.com>
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.
Next: Junio C Hamano
Message 1 of 2 in “hold_index_file_for_update should not unlink failed to open .lock files atexit”
  1. hold_index_file_for_update should not unlink failed to open .lock files atexitAlex Riesen, Oct 5, 2005
  2. Junio C HamanoOct 5, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.