From 9542db576f9d453e0c9b65df9e9eb395e3d8b632 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 26 Jun 1995 20:55:21 +0000 Subject: (ports_manage_port_operations_multithread): Declare ERR inside THREAD_FUNCTION so it doesn't get shared by multiple threads. --- libports/manage-multithread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 6a0fc670..5260d940 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -31,7 +31,6 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, int wire_cthreads, mach_port_t wire_threads) { - error_t err; int nreqthreads = 0; int totalthreads = 0; spin_lock_t lock = SPIN_LOCK_INITIALIZER; @@ -74,6 +73,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, thread_function (int master) { int timeout; + error_t err; if (wire_threads) thread_wire (wire_threads, hurd_thread_self (), 1); -- cgit v1.2.3