提交 c8c4ef7d 编写于 作者: R Rich Felker

remove useless return value checks for functions that cannot fail

上级 0f8cc94d
......@@ -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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册