Index: kern/kern_prot.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_prot.c,v retrieving revision 1.165 diff -u -r1.165 kern_prot.c --- kern/kern_prot.c 21 Jan 2003 08:55:54 -0000 1.165 +++ kern/kern_prot.c 10 Feb 2003 04:28:41 -0000 @@ -84,16 +84,13 @@ getpid(struct thread *td, struct getpid_args *uap) { struct proc *p = td->td_proc; - int s; - s = mtx_lock_giant(kern_giant_proc); td->td_retval[0] = p->p_pid; #if defined(COMPAT_43) || defined(COMPAT_SUNOS) PROC_LOCK(p); td->td_retval[1] = p->p_pptr->p_pid; PROC_UNLOCK(p); #endif - mtx_unlock_giant(s); return (0); } @@ -110,13 +107,10 @@ getppid(struct thread *td, struct getppid_args *uap) { struct proc *p = td->td_proc; - int s; - s = mtx_lock_giant(kern_giant_proc); PROC_LOCK(p); td->td_retval[0] = p->p_pptr->p_pid; PROC_UNLOCK(p); - mtx_unlock_giant(s); return (0); } @@ -135,13 +129,10 @@ getpgrp(struct thread *td, struct getpgrp_args *uap) { struct proc *p = td->td_proc; - int s; - s = mtx_lock_giant(kern_giant_proc); PROC_LOCK(p); td->td_retval[0] = p->p_pgrp->pg_id; PROC_UNLOCK(p); - mtx_unlock_giant(s); return (0); }