Revision fa90ab4a4512858662b4d712a7b01cce970057ef authored by Johannes Schindelin on 29 June 2016, 14:31:03 UTC, committed by Junio C Hamano on 29 June 2016, 19:43:44 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cd035b1
test-sigchain.c
#include "sigchain.h"
#include "cache.h"
#define X(f) \
static void f(int sig) { \
puts(#f); \
fflush(stdout); \
sigchain_pop(sig); \
raise(sig); \
}
X(one)
X(two)
X(three)
#undef X
int main(int argc, char **argv) {
sigchain_push(SIGTERM, one);
sigchain_push(SIGTERM, two);
sigchain_push(SIGTERM, three);
raise(SIGTERM);
return 0;
}
Computing file changes ...