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:
parent
2ec2294625
commit
00f13cb353
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user