From 03c7442d750d18e376dc8fcd8adbb9dfe3661c29 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 11 Apr 2008 17:35:54 +0000 Subject: [PATCH] Use kthread_exit() to terminate a taskqueue thread rather than kproc_exit() now that the taskqueue threads are kthreads rather than kprocs. Reported by: kris --- sys/kern/subr_taskqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 3a498e8b9f7..050d7131fb1 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -408,7 +408,7 @@ taskqueue_thread_loop(void *arg) tq->tq_tcount--; wakeup_one(tq->tq_threads); TQ_UNLOCK(tq); - kproc_exit(0); + kthread_exit(); } void