refactor signal handling for cleanup functions
authorJeff King <peff@peff.net>
Thu, 22 Jan 2009 06:03:08 +0000 (01:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Jan 2009 06:46:53 +0000 (22:46 -0800)
The current code is very inconsistent about which signals
are caught for doing cleanup of temporary files and lock
files. Some callsites checked only SIGINT, while others
checked a variety of death-dealing signals.

This patch factors out those signals to a single function,
and then calls it everywhere. For some sites, that means
this is a simple clean up. For others, it is an improvement
in that they will now properly clean themselves up after a
larger variety of signals.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found