sa.sa_sigaction = sigaction_nodefer_test_handler;
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGABRT);
- sigaction(SIGTRAP, &sa, NULL);
- kill(getpid(), SIGTRAP);
+ /* We can use any signal for which a handler will be installed
+ * later. Let's go with SIGINT because gdb barfs on SIGTRAP on
+ * Darwin. */
+ sigaction(SIGINT, &sa, NULL);
+ /* Make sure no signals are blocked. */
+ {
+ sigset_t empty;
+ sigemptyset(&empty);
+ sigprocmask(SIG_SETMASK, &empty, 0);
+ }
+ kill(getpid(), SIGINT);
while (sigaction_nodefer_works == -1);
}
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.5.77"
+"0.9.5.78"