diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2008-05-29 16:55:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-31 14:33:59 -0700 |
commit | ad5fa3cc0e115a8b111868af2f727322feb144cb (patch) | |
tree | 09d7ab5a909bd1cc63e2ce3be8cacf73324fcaf9 /http-push.c | |
parent | c16570c42a748a29031281badd4762dd4e71d3d0 (diff) | |
download | git-ad5fa3cc0e115a8b111868af2f727322feb144cb.tar.gz |
rollback lock files on more signals than just SIGINT
Other signals are also common, for example SIGTERM and SIGHUP.
This patch modifies the lock file mechanism to catch more signals.
It also modifies http-push.c which was missing SIGTERM.
Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/http-push.c b/http-push.c index f173dcd64f..c93e781c3b 100644 --- a/http-push.c +++ b/http-push.c @@ -2277,6 +2277,7 @@ int main(int argc, char **argv) signal(SIGINT, remove_locks_on_signal); signal(SIGHUP, remove_locks_on_signal); signal(SIGQUIT, remove_locks_on_signal); + signal(SIGTERM, remove_locks_on_signal); /* Check whether the remote has server info files */ remote->can_update_info_refs = 0; |