int raise(int sig
Causes signal sig to be generated. The sig
argument is compatible with the
If the call is successful, zero is returned. Otherwise a
nonzero value is returned.
The output from the program should be (assuming no errors):
printf("An error occured while setting a signal handler.\n");
printf("Raising the interactive attention signal.\n");
printf("Error raising the signal.\n");
void catch_function(int signal)
printf("Interactive attention signal caught.\n");
Raising the interactive attention signal.
Interactive attention signal caught.