summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2004-10-09 15:12:33 +0000
committerMike Makonnen <mtm@FreeBSD.org>2004-10-09 15:12:33 +0000
commit101596b827d3570cefefd0b8a26a0e2e5cb7c23f (patch)
treecf23cfba4d456c7bdc4df8cdec9f9d5329e81832 /lib
parentec6386789755c859ca32bd7b5065a5e87059f9fa (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_exit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index f71c59a5dfb8..6a4568788f32 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -42,9 +42,6 @@
__weak_reference(_pthread_exit, pthread_exit);
-/* thr_exit() */
-extern int _thr_exit(void);
-
static void deadlist_free_threads();
void
@@ -164,7 +161,6 @@ _pthread_exit(void *status)
deadlist_free_threads();
TAILQ_INSERT_HEAD(&_dead_list, curthread, dle);
TAILQ_REMOVE(&_thread_list, curthread, tle);
- curthread->isdead = 1;
/* If we're the last thread, call it quits */
if (TAILQ_EMPTY(&_thread_list))
@@ -181,7 +177,7 @@ _pthread_exit(void *status)
* thread, which we can't be because we've already checked
* for that.
*/
- _thr_exit();
+ thr_exit((long *)&curthread->isdead);
/* This point should not be reached. */
PANIC("Dead thread has resumed");