From c10c4165522727877e1150ae3757de4adff6de0d Mon Sep 17 00:00:00 2001 From: iedowse Date: Mon, 11 Jun 2001 23:18:22 +0000 Subject: 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 --- lib/libc/gen/_pthread_stubs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/libc') 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); } -- cgit v1.1