Revision c5ae7cb6d94f37deedd5dcf92a6608ca7d3ce081 authored by Nguyễn Thái Ngọc Duy on 06 May 2009, 14:33:34 UTC, committed by Junio C Hamano on 07 May 2009, 01:16:26 UTC
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5e16488
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;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...