From: Clemens Buchacher Date: Sun, 25 May 2008 18:26:50 +0000 (+0200) Subject: Reset the signal being handled X-Git-Tag: v1.5.6-rc0~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1292939381507be9489451076d49a5b927e9cc4;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/lockfile.c b/lockfile.c index 663f18f9c..b0118d059 100644 --- a/lockfile.c +++ b/lockfile.c @@ -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); }