As a followup to the previous fixes to inferior, revert some of the

changes in 1.80 that were needed for locking that are no longer needed now
that a lock is simply asserted.

Submitted by:	bde
This commit is contained in:
John Baldwin 2001-11-13 16:55:54 +00:00
parent 2ec2294625
commit 00f13cb353

View File

@ -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);
}
/*