fixup test.

git-svn-id: file:///svn/unbound/trunk@645 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-09-26 11:15:42 +00:00
parent bc9f482b2a
commit 6a482dc7f2
10 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ readpid (const char* file)
return -1;
}
pid = strtol(pidbuf, &t, 10);
pid = (pid_t)strtol(pidbuf, &t, 10);
if (*t && *t != '\n') {
return -1;
+1
View File
@@ -1,6 +1,7 @@
26 September 2007: Wouter
- SIGHUP will reopen the log file.
- Option to log to syslog.
- please lint, fixup tests (that went to syslog on open, oops).
25 September 2007: Wouter
- tests for NSEC3. Fixup bitmap checks for NSEC3.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+5 -1
View File
@@ -78,7 +78,11 @@ log_init(const char* filename, int use_syslog)
key_created = 1;
ub_thread_key_create(&logkey, NULL);
}
if(logfile || log_to_syslog)
if(logfile
#ifdef HAVE_SYSLOG_H
|| log_to_syslog
#endif
)
verbose(VERB_DETAIL, "switching log to %s",
use_syslog?"syslog":(filename&&filename[0]?filename:"stderr"));
if(logfile && logfile != stderr)