diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 19:11:24 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 19:11:24 +0000 | 
| commit | d02c951f8ec631d059ec7a8addb8a104cd160280 (patch) | |
| tree | 95a3b1baea805cde74e09666d77a5b9f11d95aff /lib/libthr/thread/thr_sig.c | |
| parent | d8866befb86698415f5ef82446c22f6da5fb2bd9 (diff) | |
| parent | b5617df55b52e1be5b9f07bf00ac345f304c2497 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_sig.c')
| -rw-r--r-- | lib/libthr/thread/thr_sig.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 3329a82159b6..978ae61eca6f 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -736,8 +736,8 @@ __thr_setcontext(const ucontext_t *ucp)  		errno = EINVAL;  		return (-1);  	} -	if (!SIGISMEMBER(uc.uc_sigmask, SIGCANCEL)) -		return __sys_setcontext(ucp); +	if (!SIGISMEMBER(ucp->uc_sigmask, SIGCANCEL)) +		return (__sys_setcontext(ucp));  	(void) memcpy(&uc, ucp, sizeof(uc));  	SIGDELSET(uc.uc_sigmask, SIGCANCEL);  	return (__sys_setcontext(&uc)); | 
