summaryrefslogtreecommitdiff
path: root/src/thread/pthread_sigmask.c
AgeCommit message (Collapse)AuthorLines
2012-06-02remove implementation-reserved bits when saving signal maskRich Felker-1/+11
this fix is necessary because a program could be started with some of the implementation-reserved signals masked (e.g. due to exec having been called from a signal handler, or from a non-musl program) and then could obtain an invalid-to-use-later sigset_t as the old/saved signal mask.
2011-07-30clean up pthread_sigmask/sigprocmask dependency orderRich Felker-3/+3
it's nicer for the function that doesn't use errno to be independent, and have the other one call it. saves some time and avoids clobbering errno.
2011-03-09fix error handling for pthread_sigmaskRich Felker-0/+10
it must return errno, not -1, and should reject invalud values for how.