summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-26 20:54:00 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-26 20:54:00 +0000
commitf32abc2d47620929ec360fbc764ba9a07f92c36d (patch)
tree706562c624f0218a07a1799d1a5f0e01b9dc82e4
parent1b73aa61d03addd9db80dfd8ddc0a3c2c475c9fc (diff)
(ports_manage_port_operations_multithread): When master goes back to
wait for messages, it should unlock LOCK.
-rw-r--r--libports/manage-multithread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index f859feba..6a0fc670 100644
--- a/libports/manage-multithread.c
+++ b/libports/manage-multithread.c
@@ -102,7 +102,10 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket,
{
spin_lock (&lock);
if (totalthreads != 1)
- goto startover;
+ {
+ spin_unlock (&lock);
+ goto startover;
+ }
return;
}
else