]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
NPTL: Fix generic pthread_sigmask.
authorRoland McGrath <roland@hack.frob.com>
Thu, 8 Jan 2015 22:26:51 +0000 (14:26 -0800)
committerRoland McGrath <roland@hack.frob.com>
Thu, 8 Jan 2015 22:26:51 +0000 (14:26 -0800)
ChangeLog
nptl/pthread_sigmask.c

index 23e1b335b28f52326caef0d5b652dfa549e0f9c0..676e72c4679055b77a3f8b74a1855b6152275d3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-01-08  Roland McGrath  <roland@hack.frob.com>
 
+       * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
+       (pthread_sigmask): Call sigprocmask, not __sigprocmask.
+
        * nptl/nptl-init.c (pthread_functions): Conditionalize
        .ptr__nptl_setxid initialization on [SIGSETXID].
 
index 999f07c873af50b1dc19c135b0a424e4b8203ffe..49f47b0ce84fa0aaec17bc9adf85ec390ae17d4a 100644 (file)
 
 #include <errno.h>
 #include <signal.h>
+#include <pthreadP.h>
 
+#if defined SIGCANCEL || defined SIGTIMER || defined SIGSETXID
+# error "This implementation assumes no internal-only signal numbers."
+#endif
 
 int
 pthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask)
 {
   /* Here we assume that sigprocmask actually does everything right.
      The only difference is the return value protocol.  */
-  int result = __sigprocmask (how, newmask, oldmask);
+  int result = sigprocmask (how, newmask, oldmask);
   if (result < 0)
     result = errno;
   return result;