diff options
-rw-r--r-- | sys/kern/kern_prot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 6a81296..1ef1ee8 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -404,8 +404,6 @@ setpgid(struct thread *td, register struct setpgid_args *uap) sx_xlock(&proctree_lock); if (uap->pid != 0 && uap->pid != curp->p_pid) { if ((targp = pfind(uap->pid)) == NULL) { - if (targp) - PROC_UNLOCK(targp); error = ESRCH; goto done; } |