* src/vm/signal.c (signal_thread) [!__DARWIN__]: Don't do the
authortwisti <none@none>
Wed, 30 May 2007 20:51:50 +0000 (20:51 +0000)
committertwisti <none@none>
Wed, 30 May 2007 20:51:50 +0000 (20:51 +0000)
GC_signum stuff on Darwin (should also be done on Solaris, but let's
wait how the exact-GC is doing).

src/vm/signal.c

index 7f8a00ac441e3e51c0706f0e0bdf91fe8e0e36e7..fa2922e43c45d4f0bf2ef40d655773f79300edf1 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: signal.c 7978 2007-05-30 14:09:10Z twisti $
+   $Id: signal.c 7987 2007-05-30 20:51:50Z twisti $
 
 */
 
@@ -223,6 +223,7 @@ static void signal_thread(void)
        if (sigaddset(&mask, SIGHUP) != 0)
                vm_abort("signal_thread: sigaddset failed: %s", strerror(errno));
 
+#if !defined(__DARWIN__)
        /* XXX adjust me for exact-GC */
 
        if (sigaddset(&mask, GC_signum1()) != 0)
@@ -230,6 +231,7 @@ static void signal_thread(void)
 
        if (sigaddset(&mask, GC_signum2()) != 0)
                vm_abort("signal_thread: sigaddset failed: %s", strerror(errno));
+#endif
 
        while (true) {
                /* just wait for a signal */
@@ -243,6 +245,7 @@ static void signal_thread(void)
 /*                     vm_abort("signal_thread: sigwait failed: %s", strerror(errno)); */
                (void) sigwait(&mask, &sig);
 
+#if !defined(__DARWIN__)
                /* XXX this is only required for Boehm-GC */
 
                if (sig == GC_signum1()) {
@@ -255,6 +258,7 @@ static void signal_thread(void)
                else if (sig == GC_signum2()) {
                        GC_restart_handler(sig);
                }
+#endif
 
                switch (sig) {
                case SIGINT: