Vidyalelo
Computer Science · Q203

Linux

Engineering and GATE · Computer Science · question 203

Q203

Which one of the following is not true about this program? #include #include void response (int); void response (int signo) printf("%s ",sys_siglist[signo]); signal(SIGSEGV,SIG_IGN); int main() signal (SIGSEGV,response); char *str; *str = 10; return 0;

A.
kernel sends SIGSEGV signal to a process as segmentation fault occurs
B.
in this process signal handler will execute only one time of recieving the signal SIGSEGV
C.
all of the mentioned
D.
none of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board