projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow diff and index commands to be interrupted
[git.git]
/
index.c
diff --git
a/index.c
b/index.c
index
ad0eafe
..
f92b960
100644
(file)
--- a/
index.c
+++ b/
index.c
@@
-18,6
+18,8
@@
static void remove_lock_file(void)
static void remove_lock_file_on_signal(int signo)
{
remove_lock_file();
static void remove_lock_file_on_signal(int signo)
{
remove_lock_file();
+ signal(SIGINT, SIG_DFL);
+ raise(signo);
}
int hold_index_file_for_update(struct cache_file *cf, const char *path)
}
int hold_index_file_for_update(struct cache_file *cf, const char *path)