comparison src/syslog2iptables.cpp @ 3:8fe310e5cd44

initial coding
author carl
date Sun, 27 Nov 2005 21:12:01 -0800
parents 6e88da080f08
children 2737ab01659a
comparison
equal deleted inserted replaced
2:6e88da080f08 3:8fe310e5cd44
63 } 63 }
64 syslog(LOG_NOTICE, "%s", text); 64 syslog(LOG_NOTICE, "%s", text);
65 pthread_mutex_unlock(&syslog_mutex); 65 pthread_mutex_unlock(&syslog_mutex);
66 } 66 }
67 else { 67 else {
68 printf("%s \n", text); 68 printf("%s\n", text);
69 } 69 }
70 } 70 }
71 71
72 //////////////////////////////////////////////// 72 ////////////////////////////////////////////////
73 // reload the config 73 // reload the config
197 use_syslog = false; 197 use_syslog = false;
198 debug_syslog = 10; 198 debug_syslog = 10;
199 CONFIG *conf = new_conf(); 199 CONFIG *conf = new_conf();
200 if (conf) { 200 if (conf) {
201 conf->dump(); 201 conf->dump();
202 for (int i=0; i<30; i++) { 202 for (int i=0; i<2; i++) {
203 conf->read(); 203 conf->read();
204 sleep(1); 204 conf->sleep(5);
205 } 205 }
206 delete conf; 206 delete conf;
207 return 0; 207 return 0;
208 } 208 }
209 else { 209 else {