#include #include #include void handler(int signal){ printf("You can't kill us!\n"); } void main(){ struct sigaction action; action.sa_handler = handler; sigaction(SIGINT, &action, 0); sigaction(SIGSTOP, &action, 0); sigaction(SIGTSTP, &action, 0); sigaction(SIGTERM, &action, 0); sigaction(SIGKILL, &action, 0); for(;;){ printf("hi\n"); sleep(1); } }