comparison src/dnsbl.cpp @ 79:091d3fe3db46

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 20:12:20 -0700
parents b6beb282fd83
children c1280cd3e248
comparison
equal deleted inserted replaced
78:b6beb282fd83 79:091d3fe3db46
397 if (!syslog_opened) { 397 if (!syslog_opened) {
398 openlog("dnsbl", LOG_PID, LOG_MAIL); 398 openlog("dnsbl", LOG_PID, LOG_MAIL);
399 syslog_opened = true; 399 syslog_opened = true;
400 } 400 }
401 syslog(LOG_NOTICE, "%s", text); 401 syslog(LOG_NOTICE, "%s", text);
402 closelog(); 402 // closelog();
403 syslog_opened = false; 403 // syslog_opened = false;
404 pthread_mutex_unlock(&syslog_mutex); 404 pthread_mutex_unlock(&syslog_mutex);
405 } 405 }
406 else { 406 else {
407 printf("%s \n", text); 407 printf("%s \n", text);
408 } 408 }