fix error handling for pthread_sigmask
[musl] / src / signal / restore.c