aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-21 00:30:10 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-21 00:30:10 +0000
commit97af3b28e935b786e61d46df1a0d73fd4c9a4eba (patch)
tree2a8b0ebb6c4486bf1ecea6372d38b2b32de05286 /driver.c
parentf84d1f2f52fc176fdfa9ac1948690e04df4a1cf7 (diff)
downloadfetchmail-97af3b28e935b786e61d46df1a0d73fd4c9a4eba.tar.gz
fetchmail-97af3b28e935b786e61d46df1a0d73fd4c9a4eba.tar.bz2
fetchmail-97af3b28e935b786e61d46df1a0d73fd4c9a4eba.zip
Narrow the error() interface.
svn path=/trunk/; revision=1526
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 4 insertions, 1 deletions
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);