Fix bug in r276630. Do not allow pthread_sigmask() to block SIGCANCEL.

Reported and tested by:	royger
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
kib 2015-01-21 16:13:37 +00:00
parent bd1a9e7b11
commit 6ef4d0dc99

View File

@ -604,7 +604,8 @@ __weak_reference(_pthread_sigmask, pthread_sigmask);
int
_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
{
if (_sigprocmask(how, set, oset))
if (__thr_sigprocmask(how, set, oset))
return (errno);
return (0);
}