Mercurial > syslog2iptables
comparison src/syslog2iptables.cpp @ 38:26c29da3fbdf
shutdown removes iptables entries that we added
author | carl |
---|---|
date | Thu, 08 Nov 2007 11:35:43 -0800 |
parents | 6a2f26976898 |
children | a9101672c0e9 |
comparison
equal
deleted
inserted
replaced
37:e4eb969dfc4a | 38:26c29da3fbdf |
---|---|
221 debug_syslog = 10; | 221 debug_syslog = 10; |
222 config = new_conf(); | 222 config = new_conf(); |
223 if (config) { | 223 if (config) { |
224 config->dump(); | 224 config->dump(); |
225 delete config; | 225 delete config; |
226 clear_strings(); // for valgrind checking | |
226 return 0; | 227 return 0; |
227 } | 228 } |
228 else { | 229 else { |
229 return 1; // config failed to load | 230 return 1; // config failed to load |
230 } | 231 } |
289 my_syslog("failed to create config loader thread"); | 290 my_syslog("failed to create config loader thread"); |
290 if (pthread_detach(tid)) | 291 if (pthread_detach(tid)) |
291 my_syslog("failed to detach config loader thread"); | 292 my_syslog("failed to detach config loader thread"); |
292 | 293 |
293 worker(); | 294 worker(); |
295 clear_strings(); // for valgrind checking | |
294 | 296 |
295 return EXIT_SUCCESS; | 297 return EXIT_SUCCESS; |
296 } | 298 } |