mingw: handle GITPERLLIB in t0021 in a Windows-compatible way
[git.git] / t / helper / test-sigchain.c
blobb71edbd4429184b59b4bd1355d5cfb53970a1876
1 #include "cache.h"
2 #include "sigchain.h"
4 #define X(f) \
5 static void f(int sig) { \
6 puts(#f); \
7 fflush(stdout); \
8 sigchain_pop(sig); \
9 raise(sig); \
11 X(one)
12 X(two)
13 X(three)
14 #undef X
16 int cmd_main(int argc, const char **argv) {
17 sigchain_push(SIGTERM, one);
18 sigchain_push(SIGTERM, two);
19 sigchain_push(SIGTERM, three);
20 raise(SIGTERM);
21 return 0;