Code

Reset the signal being handled
[git.git] / 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);
 }