10 printf ("Abended on signal %d\n", sig);
21 for (i = 1; i <= 65; i++) {
22 // Skip signals 32 and 33, since these are used by LinuxThreads. Some
23 // glibc versions do not invoke the sigaction system call for these
25 // skip signals 63 and 64: some systems say "warning, ignored attempt
26 // to catch 32 because it's used internally by Valgrind", others say
27 // "invalid argument".
28 if (i == 32 || i == 33 || i == 63 || i == 64) {
30 } // different systems
32 sigemptyset( &sa.sa_mask );
33 sa.sa_handler = abend;
34 fprintf(stderr,"setting signal %d: ", i);
35 rc = sigaction (i /*SIGKILL*/, &sa, NULL);
37 else fprintf(stderr,"Success\n");
38 fprintf(stderr,"getting signal %d: ", i);
39 rc = sigaction (i /*SIGKILL*/, NULL, &sa);
41 else fprintf(stderr,"Success\n");