src/sys/security/audit/audit.c
/*
 * Drain the audit queue and close the log at shutdown.  Note that this can
 * be called both from the system shutdown path and also from audit
 * configuration syscalls, so 'arg' and 'howto' are ignored.
 *
 * XXXRW: In FreeBSD 7.x and 8.x, this fails to wait for the record queue to
 * drain before returning, which could lead to lost records on shutdown.
 */
Drain the audit queue and close the log at shutdown.  Note that this can
be called both from the system shutdown path and also from audit
configuration syscalls, so 'arg' and 'howto' are ignored.

In FreeBSD 7.x and 8.x, this fails to wait for the record queue to
drain before returning, which could lead to lost records on shutdown.
Drain the audit queue and close the log at shutdown . Note that this can be called both from the system shutdown path and also from audit configuration syscalls so ' arg ' and ' howto ' are ignored . In FreeBSD 7 . x and 8 . x this fails to wait for the record queue to drain before returning which could lead to lost records on shutdown .
void
audit_shutdown(void *arg, int howto)
{
	audit_rotate_vnode(NULL, NULL);
}
void audit_shutdown ( void * arg , int howto ) { audit_rotate_vnode ( NULL , NULL ) ; }
Drain the audit queue and close the log at shutdown.
Drain the audit queue and close the log at shutdown .