MCQ Practice
What happnes as the signal SIGINT hits the current process in the program? #include #include void response (int); void response (int sig_no) { printf("Linuxn"); } int main() { struct sigaction act; act.sa_handler = response; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaction(SIGINT,&act,0); while(1){ printf("Examplen"); sleep(1); } return 0; }
Subject: Computer Science EngineeringTopic: Linux
Correct Answer: B
