summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-02-10 03:34:29 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-02-10 03:34:29 +0000
commitf8fec9778a9c75e563db745bde8989629102c614 (patch)
tree8041c4ab9b13ceb460cb8eda1c9b98c1ba1228e8 /sys/kern/kern_thr.c
parent6322cc1d1c92b5f27f09ed4d43a59f4c28236a99 (diff)
downloadFreeBSD-src-f8fec9778a9c75e563db745bde8989629102c614.zip
FreeBSD-src-f8fec9778a9c75e563db745bde8989629102c614.tar.gz
Call thread_stopped in thr_exit to notify parent that the child process
is now fully stopped, this was already in kse_exit().
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 86df4d7..f589160 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 */
}
OpenPOWER on IntegriCloud