提交 9848e648 编写于 作者: R Rich Felker

block all signals, even implementation-internal ones, in faccessat child

the child process's stack may be insufficient size to support a signal
frame, and there is no reason these signal handlers should run in the
child anyway.
上级 d4d6d6f3
......@@ -37,7 +37,7 @@ int faccessat(int fd, const char *filename, int amode, int flag)
if (pipe(p)) return __syscall_ret(-EBUSY);
struct ctx c = { .fd = fd, .filename = filename, .amode = amode, .p = p[1] };
__block_app_sigs(&set);
__block_all_sigs(&set);
ret = __clone(checker, stack+sizeof stack, 0, &c);
__syscall(SYS_close, p[1]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册