syslog feature.

git-svn-id: file:///svn/unbound/trunk@644 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-09-26 10:19:28 +00:00
parent 8659118a5e
commit bc9f482b2a
16 changed files with 115 additions and 36 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ main(int argc, char* argv[])
usage();
return 1;
}
log_init(NULL);
log_init(NULL, 0);
log_ident_set("lock-verify");
/* init */
all_locks = rbtree_create(order_lock_cmp);
+1 -1
View File
@@ -236,7 +236,7 @@ process_nsec3(int argc, char* argv[])
/** main program */
int main(int argc, char* argv[])
{
log_init(NULL);
log_init(NULL, 0);
if(argc != 6) {
usage();
}
+2 -1
View File
@@ -135,6 +135,7 @@ setup_config(FILE* in, char* configfile, int* lineno,
if(!cfg) fatal_exit("could not open %s: %s",
configfile, strerror(errno));
line[MAX_LINE_LEN-1] = 0;
fprintf(cfg, "server: use-syslog: no\n");
while(fgets(line, MAX_LINE_LEN-1, in)) {
parse = line;
(*lineno)++;
@@ -204,7 +205,7 @@ main(int argc, char* argv[])
char* init_optarg = optarg;
struct replay_scenario* scen = NULL;
log_init(NULL);
log_init(NULL, 0);
log_info("Start of %s testbound program.", PACKAGE_STRING);
/* determine commandline options for the daemon */
cfgfile[0] = 0;
+1 -1
View File
@@ -205,7 +205,7 @@ infra_test()
int
main(int argc, char* argv[])
{
log_init(NULL);
log_init(NULL, 0);
if(argc != 1) {
printf("usage: %s\n", argv[0]);
printf("\tperforms unit tests.\n");