diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-01-08 14:26:51 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-01-08 14:26:51 -0800 |
commit | 7b052e33dd35cbee0fcb14a1b58ac2023b40b9af (patch) | |
tree | 4fff6a000a05036b98c500858cba1f781b64cfa5 /nptl | |
parent | cc40d25e50621b8762d05c0984d572c1bc7507bf (diff) | |
download | glibc-7b052e33dd35cbee0fcb14a1b58ac2023b40b9af.zip glibc-7b052e33dd35cbee0fcb14a1b58ac2023b40b9af.tar.gz glibc-7b052e33dd35cbee0fcb14a1b58ac2023b40b9af.tar.bz2 |
NPTL: Fix generic pthread_sigmask.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/pthread_sigmask.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/pthread_sigmask.c b/nptl/pthread_sigmask.c index 999f07c..49f47b0 100644 --- a/nptl/pthread_sigmask.c +++ b/nptl/pthread_sigmask.c @@ -18,14 +18,18 @@ #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; |