#include #include #include void dont_die(int p){ puts("We can't be stopped that easily"); } int main(){ struct sigaction bob; bob.sa_flags = 0; bob.sa_handler = dont_die; sigaction(SIGINT, &bob, 0); while(1) { puts("beep"); sleep(1); } return 0; }