mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00: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)
|
static void remove_lock_file_on_signal(int signo)
|
||||||
{
|
{
|
||||||
remove_lock_file();
|
remove_lock_file();
|
||||||
signal(SIGINT, SIG_DFL);
|
signal(signo, SIG_DFL);
|
||||||
raise(signo);
|
raise(signo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue