projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f8cc94
)
remove useless return value checks for functions that cannot fail
author
Rich Felker
<dalias@aerifal.cx>
Thu, 10 Mar 2011 16:02:29 +0000
(11:02 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 10 Mar 2011 16:02:29 +0000
(11:02 -0500)
src/signal/sigpause.c
patch
|
blob
|
history
diff --git
a/src/signal/sigpause.c
b/src/signal/sigpause.c
index 263c00f5dcf5382a408a37c23cf9b46492815d6e..6c0f05dfb0d7708d395c9580db367158ffa27159 100644
(file)
--- a/
src/signal/sigpause.c
+++ b/
src/signal/sigpause.c
@@
-4,8
+4,7
@@
int sigpause(int sig)
{
sigset_t mask;
-
- if (sigprocmask(0, NULL, &mask) < 0 || sigdelset(&mask, sig) < 0)
- return -1;
+ sigprocmask(0, 0, &mask);
+ sigdelset(&mask, sig);
return sigsuspend(&mask);
}