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

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;

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.

Binary file not shown.

BIN
testdata/fwd_tcp.tpkg vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
testdata/fwd_udp.tpkg vendored

Binary file not shown.

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)