Code

Reset the signal being handled
authorClemens Buchacher <drizzd@aon.at>
Sun, 25 May 2008 18:26:50 +0000 (20:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 May 2008 20:06:55 +0000 (13:06 -0700)
This did not cause any problems, because remove_lock_file_on_signal is
only registered for SIGINT.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c

index 663f18f9c40145e5ab772021e0c700e9123a4b01..b0118d0592f691d6ae9f321c6303f93d43007f6f 100644 (file)
@@ -24,7 +24,7 @@ static void remove_lock_file(void)
 static void remove_lock_file_on_signal(int signo)
 {
        remove_lock_file();
-       signal(SIGINT, SIG_DFL);
+       signal(signo, SIG_DFL);
        raise(signo);
 }