summaryrefslogtreecommitdiff
path: root/src/signal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-10 11:02:29 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-10 11:02:29 -0500
commitc8c4ef7d4404b94483c68b7479eb98b9b09f996c (patch)
tree4fb63703d35871a4c7b2b87872ef701d40a0ec02 /src/signal
parent0f8cc94d68a54893fc2aee90503735045618d8ae (diff)
downloadmusl-c8c4ef7d4404b94483c68b7479eb98b9b09f996c.tar.gz
remove useless return value checks for functions that cannot fail
Diffstat (limited to 'src/signal')
-rw-r--r--src/signal/sigpause.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/signal/sigpause.c b/src/signal/sigpause.c
index 263c00f5..6c0f05df 100644
--- 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);
}