summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index d36ae2e..c3c06d9 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -471,6 +471,10 @@ thread_exit(void)
(long)p->p_pid, p->p_comm);
KASSERT(TAILQ_EMPTY(&td->td_sigqueue.sq_list), ("signal pending"));
+#ifdef AUDIT
+ AUDIT_SYSCALL_EXIT(0, td);
+#endif
+
if (td->td_standin != NULL) {
/*
* Note that we don't need to free the cred here as it
OpenPOWER on IntegriCloud