mirror of
https://github.com/git/git.git
synced 2024-11-13 20:53:02 +01: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>
11 lines
215 B
C
11 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 */
|