0.9.5.78:
authorGabor Melis <mega@hotpop.com>
Thu, 20 Oct 2005 09:47:41 +0000 (09:47 +0000)
committerGabor Melis <mega@hotpop.com>
Thu, 20 Oct 2005 09:47:41 +0000 (09:47 +0000)
  * be nicer to gdb: use SIGINT instead of SIGTRAP for the
    SA_NODEFER test (thanks to Cyrus Harmon)

src/runtime/interrupt.c
version.lisp-expr

index a266301..8a93526 100644 (file)
@@ -1075,8 +1075,17 @@ see_if_sigaction_nodefer_works()
     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);
 }
 
index 680854d..ffe2269 100644 (file)
@@ -17,4 +17,4 @@
 ;;; 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"