Skip to content

fix error handling for pthread_sigmask(3)#93530

Merged
bors merged 2 commits intorust-lang:masterfrom
anonion0:pthread_sigmask_fix
Apr 18, 2022
Merged

fix error handling for pthread_sigmask(3)#93530
bors merged 2 commits intorust-lang:masterfrom
anonion0:pthread_sigmask_fix

Conversation

@anonion0
Copy link
Contributor

@anonion0 anonion0 commented Feb 1, 2022

Errors from pthread_sigmask(3) were handled using cvt(), which expects a return value of -1 on error and uses errno.
However, pthread_sigmask(3) returns 0 on success and an error number otherwise.

Fix it by replacing cvt() with cvt_nz().

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants