2003-01-16 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Thu, 16 Jan 2003 15:38:55 +0000 (15:38 -0000)
committerMartin Baulig <martin@novell.com>
Thu, 16 Jan 2003 15:38:55 +0000 (15:38 -0000)
* jit.c (mono_runtime_install_handlers): Use SYS_sigaction() for
the mono_thread_get_abort_signal () - this is SIGUSR1 on FreeBSD
and the LinuxThreads port doesn't allow you to override the handler.
[FIXME: This avoids an assertion failure on startup, but there's
still an issue with thread termination.]

svn path=/trunk/mono/; revision=10576

mono/jit/ChangeLog
mono/jit/jit.c

index 3187cfc0caa66d96134c82c37f17263a9f1837d7..91b38a8aff02973bbe3aa190439957a040fe677a 100644 (file)
@@ -1,3 +1,11 @@
+2003-01-16  Martin Baulig  <martin@ximian.com>
+
+       * jit.c (mono_runtime_install_handlers): Use SYS_sigaction() for
+       the mono_thread_get_abort_signal () - this is SIGUSR1 on FreeBSD
+       and the LinuxThreads port doesn't allow you to override the handler.
+       [FIXME: This avoids an assertion failure on startup, but there's
+       still an issue with thread termination.]
+
 2003-01-16  Martin Baulig  <martin@ximian.com>
 
        * debug.c: Use the mono/io-layer functions here instead of gthread.
index 4fd06dc6ec84901f79e85a804f56fb423f42a85f..189845a4ca58de01300c391bc18b630be3c52c12 100644 (file)
@@ -4166,7 +4166,8 @@ mono_runtime_install_handlers (void)
        sigemptyset (&sa.sa_mask);
        sa.sa_flags = 0;
        //g_assert (syscall (SYS_sigaction, SIGILL, &sa, NULL) != -1);
-       g_assert (sigaction (mono_thread_get_abort_signal (), &sa, NULL) != -1);
+       g_assert (syscall (SYS_sigaction, mono_thread_get_abort_signal (), &sa, NULL) != -1);
+       //g_assert (sigaction (mono_thread_get_abort_signal (), &sa, NULL) != -1);
 
 #if 1
        /* catch SIGSEGV */