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

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2005-10-06 00:58:11
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.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Thu Oct 06 00:59:27 2005

This archive was generated by hypermail 2.1.8 : 2005-10-06 00:59:31 EST