summaryrefslogtreecommitdiff
path: root/lockfile.c
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2008-05-25 18:26:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-25 20:06:55 (GMT)
commita1292939381507be9489451076d49a5b927e9cc4 (patch)
tree00bbb5ec76d6a6733020213d4778e5ea5d6fea20 /lockfile.c
parent509792b94f71f199838fdeaf0801e215213a6d08 (diff)
downloadgit-a1292939381507be9489451076d49a5b927e9cc4.zip
git-a1292939381507be9489451076d49a5b927e9cc4.tar.gz
git-a1292939381507be9489451076d49a5b927e9cc4.tar.bz2
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>
Diffstat (limited to 'lockfile.c')
-rw-r--r--lockfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lockfile.c b/lockfile.c
index 663f18f..b0118d0 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);
}