mirror of
https://github.com/git/git.git
synced 2024-12-18 22:33:34 +08:00
57b235a4bc
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>
12 lines
215 B
C
12 lines
215 B
C
#ifndef SIGCHAIN_H
|
|
#define SIGCHAIN_H
|
|
|
|
typedef void (*sigchain_fun)(int);
|
|
|
|
int sigchain_push(int sig, sigchain_fun f);
|
|
int sigchain_pop(int sig);
|
|
|
|
void sigchain_push_common(sigchain_fun f);
|
|
|
|
#endif /* SIGCHAIN_H */
|