Staging
v0.5.1
v0.5.1
Revision 632052641517de1a965c1f045b97d2eaa541b2e9 authored by Junio C Hamano on 23 September 2011, 21:38:39 UTC, committed by Junio C Hamano on 23 September 2011, 21:43:05 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a0b1cb6
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 ...