diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-06-11 23:18:22 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-06-11 23:18:22 +0000 |
commit | c10c4165522727877e1150ae3757de4adff6de0d (patch) | |
tree | 0bc2ddde853a3aeeed360f82f6b41c1ef42a2a79 /lib/libc | |
parent | eb8c70e07b7140debc6086a0171b67da828ff577 (diff) | |
download | FreeBSD-src-c10c4165522727877e1150ae3757de4adff6de0d.zip FreeBSD-src-c10c4165522727877e1150ae3757de4adff6de0d.tar.gz |
Make the non-threaded stub for pthread_sigmask() a no-op instead
of calling sigprocmask(). This matches the behaviour of thr_sigsetmask()
on Solaris; _pthread_sigmask_stub was added purely for compatibility
with Solaris (for TI-RPC), so it might as well do the same thing.
This fixes the problem where client RPC calls ignored all signals
for the complete duration of the RPC. This behaviour is currently
necessary in the threaded case due to locking issues, but was never
intended to occur in non-threaded programs.
Reviewed by: deischen
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/_pthread_stubs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libc/gen/_pthread_stubs.c b/lib/libc/gen/_pthread_stubs.c index 8695741..c8fc6ae 100644 --- a/lib/libc/gen/_pthread_stubs.c +++ b/lib/libc/gen/_pthread_stubs.c @@ -226,10 +226,5 @@ _pthread_setspecific_stub(pthread_key_t key, const void *value) int _pthread_sigmask_stub(int how, const sigset_t *set, sigset_t *oset) { - /* - * No need to use _sigprocmask, since we know that the threads - * library is not linked in. - * - */ - return (sigprocmask(how, set, oset)); + return (0); } |