From a7eac6c4eb4ede70584faa0995abe25d51129fdd Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 17 Oct 1996 14:58:12 +0000 Subject: Message and documentation cleanup. svn path=/trunk/; revision=342 --- driver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'driver.c') 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); } -- cgit v1.2.3