diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-23 04:26:49 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-23 04:26:49 +0000 |
commit | 32df1647d81e939d0ba7d199f82e698c3d6fbd9b (patch) | |
tree | 3fc4b835c9b240a4c89743fd6e0dd8cc12584910 /sys/kern/kern_prot.c | |
parent | 06a62be24a59008771b864bca2a1a9100e1516e0 (diff) | |
download | FreeBSD-src-32df1647d81e939d0ba7d199f82e698c3d6fbd9b.zip FreeBSD-src-32df1647d81e939d0ba7d199f82e698c3d6fbd9b.tar.gz |
In setpgid(), since td is passed in as a system call argument, use it
in preference to curthread, which costs slightly more.
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r-- | sys/kern/kern_prot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 5132d2e..221a84c 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -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; } |