{"thread":{"id":"2018","subject":"[PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit","startedAt":"2005-10-05T14:58:11Z","lastAt":"2005-10-05T18:49:51Z","messageCount":2,"participants":["Alex Riesen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9703","messageId":"81b0412b0510050758v26b88f4o5f15e3ff01e9cd87@mail.gmail.com","threadId":"2018","inReplyTo":null,"subject":"[PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2005-10-05T14:58:11Z","receivedAt":"2005-10-05T14:58:11Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Hello,\n\nI noticed that index.lock is one time removed by git-update-index\nand the other time not (I am still trying to make the rename behave on\nmy cygwin installation). The atexit callback removes .lock file uncoditionally,\nwhether it was opened by the current process or not.\n\nI fixed this with the attached (sorry, it's windows+firefox+gmail) patch.\n\nThe patch sets up atexit only if the file was opened successfully.\n"},{"id":"9718","messageId":"7v3bnfvlww.fsf@assigned-by-dhcp.cox.net","threadId":"2018","inReplyTo":"81b0412b0510050758v26b88f4o5f15e3ff01e9cd87@mail.gmail.com","subject":"Re: [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-05T18:49:51Z","receivedAt":"2005-10-05T18:49:51Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.  Will apply.\n"}]}