diff options
-rw-r--r-- | fetchmail.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c index 49355f5c..3dea6252 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -329,12 +329,17 @@ int main (int argc, char **argv) namerec = gethostbyname(ctl->servername); if (namerec == (struct hostent *)NULL) { + fprintf(stderr, + "fetchmail: skipping %s poll, ", + ctl->servername); if (errno) - perror("fetchmail: initialization error"); + { + perror("general error"); + if (errno == ENETUNREACH) + break; /* go to sleep */ + } else - fprintf(stderr, - "fetchmail: skipping %s poll, nameserver isn't responding\n", - ctl->servername); + herror("DNS error"); continue; } else |