29 lines
469 B
C
29 lines
469 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <signal.h>
|
|
|
|
void sigv_handler(int signum)
|
|
{
|
|
printf("HANDLED!\n");
|
|
}
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
signal(SIGSEGV, SIG_IGN);
|
|
signal(SIGSEGV, SIG_IGN);
|
|
signal(SIGTERM, SIG_IGN);
|
|
signal(SIGABRT, SIG_IGN);
|
|
signal(SIGILL, SIG_IGN);
|
|
signal(SIGKILL, SIG_IGN);
|
|
|
|
|
|
//char *p = 102034543; int a = *p;
|
|
//while (1) {;};
|
|
|
|
execl("./signal", "", NULL);
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|