summaryrefslogtreecommitdiff
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 86df4d7e2f3ec..f58916012869f 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -291,6 +291,7 @@ thr_exit(struct thread *td, struct thr_exit_args *uap)
* call exit() in the trampoline when it returns.
*/
if (p->p_numthreads != 1) {
+ thread_stopped(p);
thread_exit();
/* NOTREACHED */
}