summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-14 12:56:33 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-14 12:56:33 +0000
commit9027298494805ac696540a7be0ebd1c0d621bc59 (patch)
tree3305d1054437445727bab84960d2eff43ab3ce71 /libports
parent347208ec308ea52ccdfdba78d2439a823836fdda (diff)
*** empty log message ***
Diffstat (limited to 'libports')
-rw-r--r--libports/claim-right.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libports/claim-right.c b/libports/claim-right.c
index 980210a3..2ddb3aaa 100644
--- a/libports/claim-right.c
+++ b/libports/claim-right.c
@@ -34,13 +34,16 @@ ports_claim_right (void *portstruct)
mutex_lock (&_ports_lock);
ihash_locp_remove (pi->bucket->htable, pi->hentry);
+ mach_port_move_member (mach_task_self (), ret, MACH_PORT_NULL);
pi->port_right = MACH_PORT_NULL;
if (pi->flags & PORT_HAS_SENDRIGHTS)
{
pi->flags &= ~PORT_HAS_SENDRIGHTS;
+ mutex_unlock (&_ports_lock);
ports_port_deref (pi);
}
- mutex_unlock (&_ports_lock);
+ else
+ mutex_unlock (&_ports_lock);
}
else
ret = MACH_PORT_NULL;