diff options
author | mtm <mtm@FreeBSD.org> | 2004-03-27 15:05:28 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-03-27 15:05:28 +0000 |
commit | 1368ee7bbe8fe12cc3198ba6d3b60c72aba57b4c (patch) | |
tree | 59962a1a1997ce2f27f3837a246291555fd466ff /lib/libthr/thread/thr_sig.c | |
parent | 9481d0539ded5c181074110b4561003edab1a015 (diff) | |
download | FreeBSD-src-1368ee7bbe8fe12cc3198ba6d3b60c72aba57b4c.zip FreeBSD-src-1368ee7bbe8fe12cc3198ba6d3b60c72aba57b4c.tar.gz |
o Since we're not using signals for thread synchronization anymore,
sigprocmask no longer needs to be wrapped.
o raise(3) is applied to the calling thread in a threaded program.
o In the sigaction wrapper reference the correct structure.
o Don't treat SIGTHR especially anymore (infact it won't exist in
a little while).
Diffstat (limited to 'lib/libthr/thread/thr_sig.c')
-rw-r--r-- | lib/libthr/thread/thr_sig.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 771afbc..0f7d173 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -47,36 +47,6 @@ #define DBG_MSG(x...) #endif -__weak_reference(_sigprocmask, sigprocmask); - -int -_sigprocmask(int how, const sigset_t *set, sigset_t *oset) -{ - sigset_t new; - - /* - * Make sure applications can't unblock our synchronization - * signal. We always want to take this with sigwait(). - */ - if (set != NULL) { - new = *set; - switch (how) { - case SIG_BLOCK: - case SIG_SETMASK: - SIGADDSET(new, SIGTHR); - break; - case SIG_UNBLOCK: - SIGDELSET(new, SIGTHR); - break; - default: - break; - } - set = &new; - } - - return (__sys_sigprocmask(how, set, oset)); -} - __weak_reference(_pthread_sigmask, pthread_sigmask); int |