mirror of
https://github.com/git/git.git
synced 2025-01-19 05:53:31 +08:00
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>
This commit is contained in:
parent
509792b94f
commit
a129293938
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user