FreeBSD/contrib/openbsm/bin/auditd/auditd.c
/*
 * Close auditd pid file and trigger mechanism.
 */
Close auditd pid file and trigger mechanism.
Close auditd pid file and trigger mechanism .
static int
close_misc(void)
{
	auditd_close_dirs();
	if (unlink(AUDITD_PIDFILE) == -1 && errno != ENOENT) {
		auditd_log_err("Couldn't remove %s: %m", AUDITD_PIDFILE);
		return (1);
	}
	endac();
	if (auditd_close_trigger() != 0) {
		auditd_log_err("Error closing trigger messaging mechanism");
		return (1);
	}
	return (0);
}
static int close_misc ( void ) { auditd_close_dirs ( ) ; if ( unlink ( AUDITD_PIDFILE ) == -1 && errno != ENOENT ) { auditd_log_err ( " " , AUDITD_PIDFILE ) ; return ( 1 ) ; } endac ( ) ; if ( auditd_close_trigger ( ) != 0 ) { auditd_log_err ( " " ) ; return ( 1 ) ; } return ( 0 ) ; }
Close auditd pid file and trigger mechanism.
Close auditd pid file and trigger mechanism .