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
This commit is contained in:
parent
336d3d2ab3
commit
f9f6897972
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user