From 39b602426042f3d247fed71563369c5712e48dc6 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 18 Jul 1995 18:29:39 +0000 Subject: (ports_manage_port_operations_multithread) [thread_function]: Return int. Don't cthread_exit child threads; just let them return normally. --- libports/manage-multithread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libports') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 5cb84b10..be810aa5 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -35,7 +35,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, volatile int totalthreads; spin_lock_t lock = SPIN_LOCK_INITIALIZER; - auto void thread_function (int); + auto int thread_function (int); int internal_demuxer (mach_msg_header_t *inp, @@ -75,7 +75,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, return status; } - void + int thread_function (int master) { int timeout; @@ -107,7 +107,6 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, spin_unlock (&lock); goto startover; } - return; } else { @@ -115,7 +114,6 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, nreqthreads--; totalthreads--; spin_unlock (&lock); - cthread_exit (0); } } -- cgit v1.2.3