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:
parent
c99c1da589
commit
71a057bc73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user