mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-26 19:54:53 +02:00
fixup test.
git-svn-id: file:///svn/unbound/trunk@645 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+1
-1
@@ -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,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.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user