diff options
Diffstat (limited to 'lib/libpthread/thread/thr_sigsuspend.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sigsuspend.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lib/libpthread/thread/thr_sigsuspend.c b/lib/libpthread/thread/thr_sigsuspend.c index ee2d0b5671df..a26b6b99bf4b 100644 --- a/lib/libpthread/thread/thr_sigsuspend.c +++ b/lib/libpthread/thread/thr_sigsuspend.c @@ -47,6 +47,9 @@ sigsuspend(const sigset_t * set)  		/* Save the current sigmal mask: */  		oset = _thread_run->sigmask; +		/* Combine the caller's mask with the current one: */ +		_thread_run->sigmask |= *set; +  		/* Wait for a signal: */  		_thread_kern_sched_state(PS_SIGWAIT, __FILE__, __LINE__); | 
