Use pthread_sigmask, not sigprocmask.