5 #include "include/log.h"
6 #include "include/list.h"
7 #include "include/led.h"
8 #include "include/signal.h"
10 void (*crtlc_cb)(void) = 0;
12 static void handlerINT(int s)
14 log_printf("caught sig int ... cleaning up\n");
20 void signal_init(void (*_crtlc_cb)(void))
24 s.sa_handler = handlerINT;
26 sigaction(SIGINT, &s, NULL);