summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-18 18:29:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-18 18:29:39 +0000
commit39b602426042f3d247fed71563369c5712e48dc6 (patch)
treea24b478f7e2c542ef1f04c602cc0cda4ae4e0a4d /libports
parent1b35a7cd92e880d35ec349e5ea773f6325e24665 (diff)
(ports_manage_port_operations_multithread) [thread_function]: Return
int. Don't cthread_exit child threads; just let them return normally.
Diffstat (limited to 'libports')
-rw-r--r--libports/manage-multithread.c6
1 files changed, 2 insertions, 4 deletions
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);
}
}