summaryrefslogtreecommitdiff
path: root/libports/claim-right.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-28 15:47:54 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-28 15:47:54 +0000
commit041ea3ba96fc3929f6834b7711d9a264cad97328 (patch)
tree27b9c085d7b23d34793f70943af78beb26129db4 /libports/claim-right.c
parent82e746454604c890ed2501507cd4a5ba48041ca8 (diff)
(ports_claim_right): Hold lock until sendright frobbing is finished.
Diffstat (limited to 'libports/claim-right.c')
-rw-r--r--libports/claim-right.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/claim-right.c b/libports/claim-right.c
index 2569fa77..980210a3 100644
--- a/libports/claim-right.c
+++ b/libports/claim-right.c
@@ -34,13 +34,13 @@ ports_claim_right (void *portstruct)
mutex_lock (&_ports_lock);
ihash_locp_remove (pi->bucket->htable, pi->hentry);
- mutex_unlock (&_ports_lock);
pi->port_right = MACH_PORT_NULL;
if (pi->flags & PORT_HAS_SENDRIGHTS)
{
pi->flags &= ~PORT_HAS_SENDRIGHTS;
ports_port_deref (pi);
}
+ mutex_unlock (&_ports_lock);
}
else
ret = MACH_PORT_NULL;