summaryrefslogtreecommitdiff
path: root/libports/inhibit-bucket-rpcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libports/inhibit-bucket-rpcs.c')
-rw-r--r--libports/inhibit-bucket-rpcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/inhibit-bucket-rpcs.c b/libports/inhibit-bucket-rpcs.c
index 965aa036..82efdf57 100644
--- a/libports/inhibit-bucket-rpcs.c
+++ b/libports/inhibit-bucket-rpcs.c
@@ -35,6 +35,7 @@ ports_inhibit_bucket_rpcs (struct port_bucket *bucket)
{
int this_one = 0;
+ pthread_rwlock_rdlock (&_ports_htable_lock);
HURD_IHASH_ITERATE (&bucket->htable, portstruct)
{
struct rpc_info *rpc;
@@ -49,7 +50,7 @@ ports_inhibit_bucket_rpcs (struct port_bucket *bucket)
hurd_thread_cancel (rpc->thread);
}
}
-
+ pthread_rwlock_unlock (&_ports_htable_lock);
while (bucket->rpcs > this_one)
{