aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
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);
}