提交 8011614d 编写于 作者: R Rich Felker

make posix_spawn accept null pid pointer arguments

this is a requirement in the specification that was overlooked.
上级 e74f3b02
......@@ -166,7 +166,7 @@ int __posix_spawnx(pid_t *restrict res, const char *restrict path,
close(args.p[0]);
if (!ec) *res = pid;
if (!ec && res) *res = pid;
pthread_sigmask(SIG_SETMASK, &args.oldmask, 0);
pthread_setcancelstate(cs, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册