summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_sigsuspend.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1996-08-20 08:22:01 +0000
committerJulian Elischer <julian@FreeBSD.org>1996-08-20 08:22:01 +0000
commit0f7d684755aefbcfd70b45d24efc2d39bc505c4c (patch)
treeb14348030d1048f8628b798374a8a061a990aae3 /lib/libpthread/thread/thr_sigsuspend.c
parent1bbb22c82e47dbc805e523be5e2fe3d4436761e0 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sigsuspend.c')
-rw-r--r--lib/libpthread/thread/thr_sigsuspend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sigsuspend.c b/lib/libpthread/thread/thr_sigsuspend.c
index ee2d0b5671df3..a26b6b99bf4b6 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__);