From 97af3b28e935b786e61d46df1a0d73fd4c9a4eba Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 21 Oct 1997 00:30:10 +0000 Subject: Narrow the error() interface. svn path=/trunk/; revision=1526 --- driver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 2c3b9a2c..dbc97ab6 100644 --- a/driver.c +++ b/driver.c @@ -1448,7 +1448,10 @@ const struct method *proto; /* protocol method table */ tagnum = 0; tag[0] = '\0'; /* nuke any tag hanging out from previous query */ ok = 0; - error_init(poll_interval == 0 && !logfile); + if (errors_to_syslog) + error_init(-1); + else + error_init(poll_interval == 0 && !logfile); /* set up the server-nonresponse timeout */ sigsave = signal(SIGALRM, timeout_handler); -- cgit v1.2.3