提交 0b3d33d4 编写于 作者: R Rich Felker

fix ungrammatical comment in posix_spawn code

上级 e89cfe51
...@@ -77,9 +77,9 @@ static int child(void *args_vp) ...@@ -77,9 +77,9 @@ static int child(void *args_vp)
if ((ret=__syscall(SYS_setpgid, 0, attr->__pgrp))) if ((ret=__syscall(SYS_setpgid, 0, attr->__pgrp)))
goto fail; goto fail;
/* Use syscalls directly because pthread state because the /* Use syscalls directly because the library functions attempt
* library functions attempt to do a multi-threaded synchronized * to do a multi-threaded synchronized id-change, which would
* id-change, which would trash the parent's state. */ * trash the parent's state. */
if (attr->__flags & POSIX_SPAWN_RESETIDS) if (attr->__flags & POSIX_SPAWN_RESETIDS)
if ((ret=__syscall(SYS_setgid, __syscall(SYS_getgid))) || if ((ret=__syscall(SYS_setgid, __syscall(SYS_getgid))) ||
(ret=__syscall(SYS_setuid, __syscall(SYS_getuid))) ) (ret=__syscall(SYS_setuid, __syscall(SYS_getuid))) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册