diff options
author | Clemens Buchacher <drizzd@aon.at> | 2008-05-25 20:26:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-25 13:06:55 -0700 |
commit | a1292939381507be9489451076d49a5b927e9cc4 (patch) | |
tree | 00bbb5ec76d6a6733020213d4778e5ea5d6fea20 /lockfile.c | |
parent | 509792b94f71f199838fdeaf0801e215213a6d08 (diff) | |
download | git-a1292939381507be9489451076d49a5b927e9cc4.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lockfile.c b/lockfile.c index 663f18f9c4..b0118d0592 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); } |