#include #include #include #include void handle_ctrl_c(int signal){ printf("Can't get us that way!\n"); } int main(){ // Tell the operating system we have a function that will handle control-c struct sigaction our_sigaction; our_sigaction.sa_handler = handle_ctrl_c; sigaction(2, &our_sigaction, 0); sigaction(15, &our_sigaction, 0); while(1){ printf("beep\n"); sleep(1); } // Note: This will never run! return 0; }