C signal handling: Difference between revisions

Content deleted Content added
Reverted 2 edits by 103.40.80.11 (talk): Printf does not output a newline and while loop prevents execution of the following lines. (TW)
Line 49:
 
static void catch_function(int signo) {
printfputs("Interactive attention signal caught.");
}
 
Line 62:
return EXIT_FAILURE;
}
while(1);
puts("Exiting.");
return EXIT_SUCCESS;