aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-11-13 16:55:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-11-13 16:55:54 +0000
commit00f13cb35313a29373b69633dade20f65a80df03 (patch)
tree659f478e1a1e21e25196e49a438dbc5d163c5cc7 /sys
parent2ec22946259ecd756379948179d90886609ddccf (diff)
downloadsrc-00f13cb35313a29373b69633dade20f65a80df03.tar.gz
src-00f13cb35313a29373b69633dade20f65a80df03.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_proc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 4b1f49281861..ad1a9402b40d 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -183,15 +183,12 @@ int
inferior(p)
register struct proc *p;
{
- int rval = 1;
sx_assert(&proctree_lock, SX_LOCKED);
for (; p != curproc; p = p->p_pptr)
- if (p->p_pid == 0) {
- rval = 0;
- break;
- }
- return (rval);
+ if (p->p_pid == 0)
+ return (0);
+ return (1);
}
/*