aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-11-23 17:29:25 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-11-23 17:29:25 +0000
commit87a9b18d2286d185d574e7f3ffc23c446d343ca4 (patch)
tree267303c56facc44c53ac4781f36ec353c8e63384 /sys/kern/kern_thr.c
parentcaeb270e9fa89b24d61775541b15c61a23c0e829 (diff)
downloadsrc-87a9b18d2286d185d574e7f3ffc23c446d343ca4.tar.gz
src-87a9b18d2286d185d574e7f3ffc23c446d343ca4.zip
Notes
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index f3e4e3649855..69259d78811a 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -353,6 +353,9 @@ kern_thr_exit(struct thread *td)
return (0);
}
+ if (p->p_sysent->sv_ontdexit != NULL)
+ p->p_sysent->sv_ontdexit(td);
+
td->td_dbgflags |= TDB_EXIT;
if (p->p_ptevents & PTRACE_LWP) {
p->p_pendingexits++;