https://github.com/git/git
Revision 620771c83ec67c7f066d366acbc2efdfa75e7d14 authored by Ramkumar Ramachandra on 15 November 2011, 16:59:36 UTC, committed by Junio C Hamano on 16 November 2011, 00:08:48 UTC
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bc1bbe0
Raw File
Tip revision: 620771c83ec67c7f066d366acbc2efdfa75e7d14 authored by Ramkumar Ramachandra on 15 November 2011, 16:59:36 UTC
http: remove unused function hex()
Tip revision: 620771c
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;
}
back to top