aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-27 13:41:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-27 13:41:01 +0000
commit30b707bc3633d8442a05a892446dca65d35d76d7 (patch)
tree70677532a6237b8092f51fbd7c3767cb1c13d780 /fetchmail.c
parentc2c96e332ee43b86cf3393a195af822f2f77bf05 (diff)
downloadfetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.tar.gz
fetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.tar.bz2
fetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.zip
Various minor bug fixes.
svn path=/trunk/; revision=1530
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 4fde4363..7109a69f 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -322,8 +322,13 @@ int main (int argc, char **argv)
*/
#if defined(HAVE_SYSLOG)
if (errors_to_syslog)
+ {
openlog(program_name, LOG_PID, LOG_MAIL);
+ error_init(-1);
+ }
+ else
#endif
+ error_init(poll_interval == 0 && !logfile);
if (poll_interval)
{