fix ungrammatical comment in posix_spawn code

This commit is contained in:
Rich Felker 2014-07-01 18:32:52 -04:00
parent e89cfe51d2
commit 0b3d33d4d2
1 changed files with 3 additions and 3 deletions

View File

@ -77,9 +77,9 @@ static int child(void *args_vp)
if ((ret=__syscall(SYS_setpgid, 0, attr->__pgrp)))
goto fail;
/* Use syscalls directly because pthread state because the
* library functions attempt to do a multi-threaded synchronized
* id-change, which would trash the parent's state. */
/* Use syscalls directly because the library functions attempt
* to do a multi-threaded synchronized id-change, which would
* trash the parent's state. */
if (attr->__flags & POSIX_SPAWN_RESETIDS)
if ((ret=__syscall(SYS_setgid, __syscall(SYS_getgid))) ||
(ret=__syscall(SYS_setuid, __syscall(SYS_getuid))) )