提交 7829f42a 编写于 作者: J James Y Knight 提交者: Rich Felker

fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIX

上级 c225e6c1
......@@ -5,7 +5,7 @@
int sigaltstack(const stack_t *restrict ss, stack_t *restrict old)
{
if (ss) {
if (ss->ss_size < MINSIGSTKSZ) {
if (!(ss->ss_flags & SS_DISABLE) && ss->ss_size < MINSIGSTKSZ) {
errno = ENOMEM;
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册