git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit
@ 2005-10-05 14:58 Alex Riesen
  2005-10-05 18:49 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Riesen @ 2005-10-05 14:58 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

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.

[-- Attachment #2: hold_index_file_for_update.patch --]
[-- Type: application/xxxxx, Size: 787 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit
  2005-10-05 14:58 [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit Alex Riesen
@ 2005-10-05 18:49 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2005-10-05 18:49 UTC (permalink / raw)
  To: Alex Riesen; +Cc: git

Thanks.  Will apply.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-05 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-05 14:58 [PATCH] hold_index_file_for_update should not unlink failed to open .lock files atexit Alex Riesen
2005-10-05 18:49 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).