Allow diff and index commands to be interrupted
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 8ae6dbc64e3c6c96e37755644d14998dc6e44a5a..ec51e7dd1832013cda561fa803668b1f2213c96a 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: