mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When exiting a thread, submit any pending record. Today, we don't
audit thread exit, but should that happen, this will prevent unhappiness, as the thread exit system call will never return, and hence not commit the record. Pointed out by/with: cognet Obtained from: TrustedBSD Project
This commit is contained in:
parent
3f4b50a482
commit
89964dd284
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue