diff options
author | jhb <jhb@FreeBSD.org> | 2008-04-11 17:35:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-04-11 17:35:54 +0000 |
commit | b1a2f3884888c46366c70675d46900de2c959894 (patch) | |
tree | bf12298dbc47b8c94f4552c49b2716b2117b631c | |
parent | e8c850afc55f731ffcd55032b42500885db1bc8a (diff) | |
download | FreeBSD-src-b1a2f3884888c46366c70675d46900de2c959894.zip FreeBSD-src-b1a2f3884888c46366c70675d46900de2c959894.tar.gz |
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
-rw-r--r-- | sys/kern/subr_taskqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 3a498e8..050d713 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 |