diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-07-17 23:02:30 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-07-17 23:02:30 +0000 |
| commit | 090b336154a0d8570ea8fad84e60e7d49aa801e7 (patch) | |
| tree | 501dc66c4a1aec9b0ce29190b9613a1163a1f18a /lib/libpthread/thread/thr_sigmask.c | |
| parent | 3074d1b454e37e25facad76e56d2a05317f9e751 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sigmask.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sigmask.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sigmask.c b/lib/libpthread/thread/thr_sigmask.c index 3fd6df7d60c5..635bac28d8e2 100644 --- a/lib/libpthread/thread/thr_sigmask.c +++ b/lib/libpthread/thread/thr_sigmask.c @@ -52,6 +52,15 @@ _pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) if (! _kse_isthreaded()) _kse_setthreaded(1); + if (curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) { + ret = __sys_sigprocmask(how, set, oset); + if (ret != 0) + ret = errno; + /* Get a copy for thread dump */ + __sys_sigprocmask(SIG_SETMASK, NULL, &curthread->sigmask); + return (ret); + } + if (set) newset = *set; |
