diff options
author | John Baldwin <jhb@FreeBSD.org> | 2001-11-13 16:55:54 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2001-11-13 16:55:54 +0000 |
commit | 00f13cb35313a29373b69633dade20f65a80df03 (patch) | |
tree | 659f478e1a1e21e25196e49a438dbc5d163c5cc7 /sys | |
parent | 2ec22946259ecd756379948179d90886609ddccf (diff) | |
download | src-00f13cb35313a29373b69633dade20f65a80df03.tar.gz src-00f13cb35313a29373b69633dade20f65a80df03.zip |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_proc.c | 9 |
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); } /* |