Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/helper/test-sigchain.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / helper / test-sigchain.c` 23 lines ยท 377 bytes Raw Blame History 1 #include "test-tool.h" 2 #include "sigchain.h" 3 4 #define X(f) \ 5 static void f(int sig) { \ 6 puts(#f); \ 7 fflush(stdout); \ 8 sigchain_pop(sig); \ 9 raise(sig); \ 10 } 11 X(one) 12 X(two) 13 X(three) 14 #undef X 15 16 int cmd__sigchain(int argc UNUSED, const char **argv UNUSED) 17 { 18 sigchain_push(SIGTERM, one); 19 sigchain_push(SIGTERM, two); 20 sigchain_push(SIGTERM, three); 21 raise(SIGTERM); 22 return 0; 23 }