Reset the signal being handled
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>
Clemens Buchacher committed
May 25, 2008 at 20:26 UTC
a1292939381507be9489451076d49a5b927e9cc4
1 file changed
+1
-1
lockfile.c
+1
-1
@@ -24,7 +24,7 @@ static void remove_lock_file(void)
24
static void remove_lock_file_on_signal(int signo)
25
{
26
remove_lock_file();
27
- signal(SIGINT, SIG_DFL);
27
+ signal(signo, SIG_DFL);
28
raise(signo);
29
}
30