static void test_file_names(void) { log_init_check(); test_log_descr(log_config.log_file, &log); test_log_descr(log_config.report_file, &report); if (!EMPTY_STRING(log_config.alert_file)) test_log_descr(log_config.alert_file, &alert); #ifdef HAVE_CHANGELOGS if (!EMPTY_STRING(log_config.changelogs_file)) test_log_descr(log_config.changelogs_file, &chglogs); #endif }
static void test_file_names( ) { log_init_check( ); /* if the lock is taken, return immediately * (another thread is doing the check) */ if ( pthread_mutex_trylock( &mutex_reopen ) != 0 ) return; test_log_descr( log_config.log_file, &log ); test_log_descr( log_config.report_file, &report ); if ( !EMPTY_STRING( log_config.alert_file ) ) test_log_descr( log_config.alert_file, &alert ); pthread_mutex_unlock( &mutex_reopen ); }