diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-05 21:06:09 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-05 21:06:09 +0000 |
commit | 8b356bb2d71d51c2f4e3e21940c236964e1c5b3c (patch) | |
tree | c2832482b05618bdf96d3398a4a35093c20bdf7a /sys/kern/kern_thread.c | |
parent | 29de4be4fa86c57ac7b74ed74857528a3f8991b7 (diff) | |
download | FreeBSD-src-8b356bb2d71d51c2f4e3e21940c236964e1c5b3c.zip FreeBSD-src-8b356bb2d71d51c2f4e3e21940c236964e1c5b3c.tar.gz |
When GC'ing a thread, assert that it has no active audit record.
This should not happen, but with this assert, brueffer and I would
not have spent 45 minutes trying to figure out why he wasn't
seeing audit records with the audit version in CVS.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 2777ca7..d36ae2e 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -172,7 +172,9 @@ thread_dtor(void *mem, int size, void *arg) /* NOTREACHED */ } #endif - +#ifdef AUDIT + audit_thread_free(td); +#endif free_unr(tid_unrhdr, td->td_tid); sched_newthread(td); } |