Dan Kegel dank@kegel.com writes:
sigprocmask may be thread-local in NPTL, but it's not in SUSv3, which doesn't at all specify what happens when you call sigprocmask in a multithreaded program. See http://www.opengroup.org/onlinepubs/007904975/toc.htm For portability's sake, one should probably use pthread_sigmask.
If we really wanted portable threading we should use only pthreads functions throughout. But of course there's the small drawback that it wouldn't let us run most Windows apps...