If I have set a signal handler for SIGSEGV
, whereas a segmentation fault is generated like:
int *a = NULL;
*a = 1;
The handler will be invoked, but this signal handler will be invoked only once. So, I guess Linux kernel will reset the signal handler to SIG_DFL
, but when? I want to know the details, so I checked the Linux kernel source code, but couldn't find the clue yet. Please show me the code if you know the details.