Allow diff and index commands to be interrupted
[git.git] / diff.c
diff --git a/diff.c b/diff.c
index 8ae6dbc..ec51e7d 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -555,6 +555,8 @@ static void remove_tempfile(void)
 static void remove_tempfile_on_signal(int signo)
 {
        remove_tempfile();
+       signal(SIGINT, SIG_DFL);
+       raise(signo);
 }
 
 /* An external diff command takes: