Bad signal number in raise causes process to exit
This program exits during raise
due to SIGQUIT.
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int main()
{
if (raise(35) == 0) {
printf("Incorrectly returned 0\n");
printf("Test FAILED\n");
return 1;
}
printf("Test PASSED\n");
return 0;
}
Edited by Ron Williams