summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-11-13 20:05:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-14 23:18:39 (GMT)
commit4723ee992cba052dc735b7d2b6f43aad26d9150a (patch)
tree054caef1affda565abda6af31e938fab32971a4e /cache.h
parent2488df84a28b5eaae5495a59e390b51874d60a03 (diff)
downloadgit-4723ee992cba052dc735b7d2b6f43aad26d9150a.zip
git-4723ee992cba052dc735b7d2b6f43aad26d9150a.tar.gz
git-4723ee992cba052dc735b7d2b6f43aad26d9150a.tar.bz2
Close files opened by lock_file() before unlinking.
This is needed on Windows since open files cannot be unlinked. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 33ebccf..dc75f9d 100644
--- a/cache.h
+++ b/cache.h
@@ -290,6 +290,7 @@ extern int refresh_index(struct index_state *, unsigned int flags, const char **
struct lock_file {
struct lock_file *next;
+ int fd;
pid_t owner;
char on_list;
char filename[PATH_MAX];