5 #include "include/log.h"
6 #include "include/list.h"
7 #include "include/led.h"
9 void (*crtlc_cb
)(void) = 0;
11 void handlerINT(int s
)
13 log_printf("caught sig int ... cleaning up\n");
19 void signal_init(void (*_crtlc_cb
)(void))
23 s
.sa_handler
= handlerINT
;
25 sigaction(SIGINT
, &s
, NULL
);