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:
Konstantin Belousov 2015-01-21 16:13:37 +00:00
parent 47671d1bab
commit 9e8bff64cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277488

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);
}