X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=index.c;h=f92b960ae46b2d43b2f46693fe086a4c4dbe3737;hb=8e69b31e0da6e5a540a3ca2ca16d59f3411385bc;hp=ad0eafedc288f2cf6b0d7c2493495087451ef466;hpb=56fc63193975edd4b9f520b6c65c2b97ecd8ee38;p=git.git diff --git a/index.c b/index.c index ad0eafedc..f92b960ae 100644 --- 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(); + signal(SIGINT, SIG_DFL); + raise(signo); } int hold_index_file_for_update(struct cache_file *cf, const char *path)