Support sigprocmask and add a test.
Merge pull request #171 from cgjones/sigprocmask

Support sigprocmask and add a test.