git: cdb79e2e08c2 - stable/13 - Move sv_onexit() sysentvec hook slightly later
Konstantin Belousov
kib at FreeBSD.org
Wed Jul 21 22:31:10 UTC 2021
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cdb79e2e08c226149473393fc7d59af574152823
commit cdb79e2e08c226149473393fc7d59af574152823
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-07-01 18:06:42 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-07-21 22:11:52 +0000
Move sv_onexit() sysentvec hook slightly later
(cherry picked from commit 55976ce11a10765dee6c71b7ed6eac016bd560ef)
---
sys/kern/kern_exit.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index fcd8b39a8ee2..515c2d4e6397 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -340,9 +340,6 @@ exit1(struct thread *td, int rval, int signo)
itimers_exit(p);
- if (p->p_sysent->sv_onexit != NULL)
- p->p_sysent->sv_onexit(p);
-
/*
* Check if any loadable modules need anything done at process exit.
* E.g. SYSV IPC stuff.
@@ -374,6 +371,8 @@ exit1(struct thread *td, int rval, int signo)
PROC_UNLOCK(p);
umtx_thread_exit(td);
+ if (p->p_sysent->sv_onexit != NULL)
+ p->p_sysent->sv_onexit(p);
seltdfini(td);
/*
More information about the dev-commits-src-all
mailing list