diff options
Diffstat (limited to 'fetchmail.c')
| -rw-r--r-- | fetchmail.c | 5 | 
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)      { | 
