summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 5b48376..341707a 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -317,7 +317,7 @@ kthread_exit(void)
/* A module may be waiting for us to exit. */
wakeup(curthread);
PROC_LOCK(p);
- if (curthread->td_proc->p_numthreads == 1) {
+ if (p->p_numthreads == 1) {
PROC_UNLOCK(p);
kproc_exit(0);
OpenPOWER on IntegriCloud