aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-17 14:58:12 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-17 14:58:12 +0000
commita7eac6c4eb4ede70584faa0995abe25d51129fdd (patch)
tree2b479114cb0fa75f56158d4075b4bd98e77b5b6e /driver.c
parentc30cc2b21a6b9c7ed6b5296ffbf26821a9ac51ca (diff)
downloadfetchmail-a7eac6c4eb4ede70584faa0995abe25d51129fdd.tar.gz
fetchmail-a7eac6c4eb4ede70584faa0995abe25d51129fdd.tar.bz2
fetchmail-a7eac6c4eb4ede70584faa0995abe25d51129fdd.zip
Message and documentation cleanup.
svn path=/trunk/; revision=342
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 1eaaeec1..8d4cb018 100644
--- a/driver.c
+++ b/driver.c
@@ -41,6 +41,7 @@ static struct method *protocol;
static int alarmed; /* a flag to indicate that SIGALRM happened */
static int mytimeout; /* server-nonresponse timeout for current query */
+static char *srvname; /* current server name for timeout message */
char tag[TAGLEN];
static int tagnum;
@@ -588,6 +589,7 @@ struct method *proto;
void (*sigsave)();
int num, count, deletions = 0;
+ srvname = queryctl->servername;
alarmed = 0;
sigsave = signal(SIGALRM, alarm_handler);
alarm (mytimeout = queryctl->timeout);
@@ -971,5 +973,6 @@ alarm_handler (int signal)
{
alarmed = 1;
fprintf(stderr,
- "fetchmail: timeout after %d seconds.\n", mytimeout);
+ "fetchmail: timeout after %d seconds waiting for %s.\n",
+ mytimeout, srvname);
}