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:
Robert Watson 2006-02-06 01:51:08 +00:00
parent 3f4b50a482
commit 89964dd284

View file

@ -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