diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-11-23 17:29:25 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-11-23 17:29:25 +0000 |
commit | 87a9b18d2286d185d574e7f3ffc23c446d343ca4 (patch) | |
tree | 267303c56facc44c53ac4781f36ec353c8e63384 /sys/kern/kern_thr.c | |
parent | caeb270e9fa89b24d61775541b15c61a23c0e829 (diff) | |
download | src-87a9b18d2286d185d574e7f3ffc23c446d343ca4.tar.gz src-87a9b18d2286d185d574e7f3ffc23c446d343ca4.zip |
Notes
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 3 |
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++; |