dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 960ac2a638c1c1de0f6214ec57cca8e5b1a5e645
Date: Sun, 06 Jun 2010 08:01:40 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  960ac2a638c1c1de0f6214ec57cca8e5b1a5e645 (commit)
      from  dab93177467064cf711ea9cf8d14a7202f30757a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=960ac2a638c1c1de0f6214ec57cca8e5b1a5e645

commit 960ac2a638c1c1de0f6214ec57cca8e5b1a5e645
Author: Klaus Treichel <address@hidden>
Date:   Sun Jun 6 10:01:22 2010 +0200

    * support/pt_defs.c (_ILThreadInitSystem): Use the new public libgc
    function GC_get_suspend_signal(void) to determine the signal used by
    libgc to suspend a thread instead of including libgs's private headers.

diff --git a/ChangeLog b/ChangeLog
index b3902fc..866d414 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-06  Klaus Treichel  <address@hidden>
+
+       * support/pt_defs.c (_ILThreadInitSystem): Use the new public libgc
+       function GC_get_suspend_signal(void) to determine the signal used by
+       libgc to suspend a thread instead of including libgs's private headers.
+
 2010-06-05  Klaus Treichel  <address@hidden>
 
        * engine/Makefile.am: Add -I$(top_srcdir)/include to AM_CFLAGS if built
diff --git a/support/pt_defs.c b/support/pt_defs.c
index 11475f7..91f4ed0 100755
--- a/support/pt_defs.c
+++ b/support/pt_defs.c
@@ -38,15 +38,6 @@
 
 #ifdef IL_USE_PTHREADS
 
-#ifdef HAVE_LIBGC
-#include <private/gc_priv.h>   /* For SIG_SUSPEND */
-#if defined(SIG_SUSPEND) && defined(GC_DARWIN_THREADS)
-/* SIG_SUSPEND is unused by LIBGC 6 for GC_DARWIN_THREADS and the definition */
-/* is wrong (SIGRTMIN + x). SIGRTMIN is not defined on MAC OSX */
-#undef SIG_SUSPEND
-#endif
-#endif
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -943,6 +934,9 @@ void _ILThreadInitSystem(ILThread *mainThread)
 {
        struct sigaction action;
        sigset_t set;
+#ifdef HAVE_LIBGC
+       int suspendSignal;
+#endif
 
        /* Set up the signal handlers that we require */
        ILMemZero(&action, sizeof(action));
@@ -983,8 +977,11 @@ void _ILThreadInitSystem(ILThread *mainThread)
         */
        sigfillset(&_suspendSet);
        sigdelset(&_suspendSet, IL_SIG_RESUME);
-#ifdef SIG_SUSPEND
-       sigdelset(&_suspendSet, SIG_SUSPEND);
+#ifdef HAVE_LIBGC
+       if((suspendSignal = GC_get_suspend_signal()) != -1)
+       {
+               sigdelset(&_suspendSet, suspendSignal);
+       }
 #endif
        sigdelset(&_suspendSet, PTHREAD_SIG_CANCEL);
        sigdelset(&_suspendSet, SIGINT);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 support/pt_defs.c |   19 ++++++++-----------
 2 files changed, 14 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]