7 void __fastcall__ sighandler (int sig)
9 printf ("Got signal #%d\n", sig);
16 if (signal (SIGSEGV, sighandler) == SIG_ERR) {
17 printf ("signal failure %d: %s\n", errno, strerror (errno));
20 printf ("About to raise SIGSEGV...\n");
22 printf ("Back from signal handler\n");
23 printf ("About to raise SIGILL...\n");
25 printf ("Back from signal handler\n");