In setpgid(), since td is passed in as a system call argument, use it

in preference to curthread, which costs slightly more.
This commit is contained in:
Robert Watson 2004-07-23 04:26:49 +00:00
parent c99c1da589
commit 71a057bc73

View File

@ -409,7 +409,7 @@ setpgid(struct thread *td, register struct setpgid_args *uap)
error = ESRCH;
goto done;
}
if ((error = p_cansee(curthread, targp))) {
if ((error = p_cansee(td, targp))) {
PROC_UNLOCK(targp);
goto done;
}