From 71b7afb2b4ea36b99f083fc7b8d540d03da1701c Mon Sep 17 00:00:00 2001 From: David Xu Date: Fri, 10 Feb 2006 03:34:29 +0000 Subject: [PATCH] Call thread_stopped in thr_exit to notify parent that the child process is now fully stopped, this was already in kse_exit(). --- sys/kern/kern_thr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 86df4d7e2f3e..f58916012869 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 */ }