bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] pthread_sigmask: always replace when not using pthread


From: Eric Blake
Subject: [PATCH] pthread_sigmask: always replace when not using pthread
Date: Wed, 6 Jul 2011 10:17:16 -0600

On mingw, when using win32 threading, the pthread_sigmask replacement
function was not being installed.

* m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
replacement when using some threading other than pthread.  Fix
logic bug.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog             |    7 +++++++
 m4/pthread_sigmask.m4 |    6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6fdeceb..e1ed452 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-06  Eric Blake  <address@hidden>
+
+       pthread_sigmask: always replace when not using pthread
+       * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
+       replacement when using some threading other than pthread.  Fix
+       logic bug.
+
 2011-07-06  Bruno Haible  <address@hidden>

        Comments.
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4
index 22485bd..d25e2cc 100644
--- a/m4/pthread_sigmask.m4
+++ b/m4/pthread_sigmask.m4
@@ -1,4 +1,4 @@
-# pthread_sigmask.m4 serial 1
+# pthread_sigmask.m4 serial 2
 dnl Copyright (C) 2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,12 +13,14 @@ AC_DEFUN([gl_PTHREAD_SIGMASK],
       LIBS="$LIBS $LIBMULTITHREAD"
       AC_CHECK_FUNCS([pthread_sigmask])
       LIBS="$gl_save_LIBS"
+    else
+      ac_cv_func_pthread_sigmask=no
     fi
   ], [
     AC_CHECK_FUNCS_ONCE([pthread_sigmask])
   ])

   if test $ac_cv_func_pthread_sigmask = no; then
-    REPLACE_PTHREAD_SIGMASK=0
+    REPLACE_PTHREAD_SIGMASK=1
   fi
 ])
-- 
1.7.4.4




reply via email to

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