Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix return of pthread_sigmask, as it needs to be errno in case of a e…
…rror and not what sigprocmask gives back
- Loading branch information
1 parent
4075a3e
commit ac3faa6
Showing
4 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <errno.h> | ||
#include <signal.h> | ||
|
||
#include "pthread.h" | ||
|
||
int pthread_sigmask(int how, const sigset_t *newmask, sigset_t *oldmask) | ||
{ | ||
return sigprocmask(how, newmask, oldmask) == -1 ? errno : 0; | ||
} | ||
|